DVP_USBSafe(
LPOPUSUSBSAFEDATA:pUSBSafeData
)
→ BOOL
Arguments
pUSBSafeData
Pointer to an
OPUSUSBSAFEDATA structure (described below).
Return value
You should return
TRUE from this function to mark yourself as USB safe.
Description
The DVP_USBSafe function marks the plugin as safe for USB export.
This function takes a pointer to an OPUSUSBSAFEDATA structure which gives you a way to specify other files that need to be exported along with your plugin. For example, your plugin may depend on other third-party DLLs - you would specify them here so that when the user exports your plugin to a USB device the required files are also copied.
The OPUSUSBSAFEDATA structure has the following fields:
[in] UINT cbSize
Opus initializes this field to the size of the structure before calling this function.
[out] LPWSTR pszOtherExports
This points to a buffer into which you must copy the names of all files you wish to be exported along with your plugin. The filenames must be stored as a double-null terminated list (eg "filename.dll\0filename2.dll\0\0")
[in] int cchOtherExports
Specifies the size of the pszOtherExports buffer, in characters.