A viewer plugin DLL must export at least three functions to be useful, and may export as many as eleven. Only one function, DVP_Identify, is mandatory.
The exported functions are listed here; see the following pages for full descriptions of them.
| DVP_Init | initialize the plugin |
| DVP_InitEx | alternative initialization function |
| DVP_Uninit | uninitialize the plugin |
| DVP_USBSafe | marks the plugin as safe for USB export |
| DVP_Identify | identifies the plugin |
| DVP_IdentifyFile | can the plugin identify/view a disk file? |
| DVP_IdentifyFileStream | identify/view a data stream? |
| DVP_IdentifyFileBytes | identify/view a file based on the file header? |
| DVP_LoadBitmap | load a bitmap from a disk file |
| DVP_LoadBitmapStream | load a bitmap from a data stream |
| DVP_LoadText | load text from a file which Opus will display |
| DVP_CreateViewer | create custom file viewer window |
| DVP_ShowProperties | display custom properties dialog for a disk file |
| DVP_ShowPropertiesStream | display custom properties dialog for a data stream |
| DVP_GetFileInfoFile | get information about a file |
| DVP_GetFileInfoFileStream | get information about a data stream |
| DVP_Configure | display configuration dialog for the plugin |
| DVP_About | display About dialog for the plugin |
Most functions are supported in both multi-byte and Unicode versions, using the A and W nomenclature used in the Win32 API. The viewer plugin header file defines a version of the function without the A or W suffix as the appropriate real function name based on whether or not the UNICODE symbol has been defined.