reference:plugins:viewer_plugins:plugin_initialization:dvp_initex

DVP_InitEx(
     LPDVPINITEXDATA:pInitExData
)
→ BOOL

Arguments

pInitExData

Pointer to a DVPINITEXDATA structure (described below).

Return value

Return TRUE to continue with plugin initialization, or FALSE to prevent Opus from loading the plugin.

Description

The DVP_InitEx function is an alternative initialization function. If a plugin exports both, Opus will call DVP_InitEx in preference to DVP_Init.

The DVP_InitEx function behaves the same as DVP_Init, but is passed a DVPINITEXDATA structure. The members of this structure are as follows:

  • [in] UINT cbSize
    Directory Opus initializes this field to the size of the structure before passing it to your function.
  • [in] HWND hwndDOpusMsgWindow
    This is the handle of a window that your plugin can use to communicate with Opus.
  • [in] DWORD dwOpusVerMajor, dwOpusVerMinor
    The major and minor version numbers of Directory Opus.
  • [in] LPWSTR pszLanguageName
    The name of the currently installed language.