reference:plugins:vfs_plugins:vfs_configure

VFS_Configure(
     HWND:hwndParent,
     HWND:hwndNotify,
     DWORD:dwNotifyData
)
→ HWND

Arguments

hwndParent

[in] The handle to the parent window

hwndNotify

[in] A window handle you can use to notify Opus that your plugin needs to be reinitialized

dwNotifyData

[in] Message data for the notification message

Return value

The return value is the window handle of the configuration dialog created by the function, or a boolean value cast as a HWND if you wish to run a modal dialog.

Description

The VFS_Configure function displays a configuration dialog for your plugin.

This function is called when the user chooses to configure your plugin. It is only called if the VFSF_CANCONFIGURE plugin flag is specified in the call to VFS_Identify. You can either return a valid HWND, in which case Opus will run a standard dialog message loop, or a boolean value, if you wish to run the message loop yourself.

If the user makes changes that require your plugin to be reinitialized (eg, adds new file extensions that you support), you can use the hwndNotify and dwNotifyData parameters to notify Opus of this. You need to post the DVFSPLUGINMSG_REINITIALIZE message to the specified window handle, and pass dwNotifyData as the lParam value of the message.