reference:plugins

The Directory Opus plugin system lets you extend its file viewing and file handling capabilities by writing your own plugins. A plugin is a DLL that exports a defined set of functions, which Opus calls when it needs the plugin's services. Plugins therefore usually need to be written in C++ or another compiled language that can produce a standard Windows DLL. The SDK header files are written for C++, and will need to be converted by hand if you want to use another language.

There are two types of plugin, plus a support API that both types can use:

  • Viewer Plugins
    Viewer plugins add support for file formats that Opus does not recognize natively. A viewer plugin can return a bitmap for Opus to display (which also enables thumbnails), or create its own viewer window for full control over display. It can also provide text data and file information for display in Listers.
  • VFS Plugins
    VFS (virtual file system) plugins let Opus browse archives, virtual file systems and any other data that can be represented as a hierarchy of folders and files. A VFS plugin implements a filesystem-like interface for reading directories and reading and writing files, and can optionally handle copy and delete operations in batch mode.
  • Plugin Support API
    The Plugin Support API is a set of helper functions exported by Opus itself (dopus.exe) for use by any viewer or VFS plugin. It includes XML configuration storage, Opus-style dialogs, support functions for batch operations, registry access and other utilities.