int error = hw_SetClipboardAdapter(hwPluginBase *self, ULONG flags,
struct hwTagList *tags);
HWPLUG_CAPS_CLIPBOARDADAPTER
capability flag set. This function must only be called from inside your RequirePlugin()
implementation. If this function succeeds, Hollywood's inbuilt clipboard handler will
be completely replaced by the clipboard handler provided by your plugin and Hollywood will
call into your plugin whenever it needs to access the clipboard. In the first parameter, you have
to pass a pointer to the hwPluginBase that Hollywood has passed to your plugin's
InitPlugin() function. The second parameter must be set to a
combination of flags. The following flags are currently defined:
HWSCAFLAGS_PERMANENT:HWSCAFLAGS_PERMANENT
is set, all subsequent calls to hw_SetClipboardAdapter() will fail and your clipboard adapter
will persist.
See Clipboard adapter plugins for information on how to write clipboard adapter plugins.
hwPluginBase pointer passed to InitPlugin()NULL for now