The OnEvent method is a general event handler. Plug-ins should ignore any events that they do not handle in case new events are added.
HRESULT OnEvent ( PluginEvent * ppe );
[in, out] Pointer to one of the PE_* enumerators contained within the PluginEventID enumeration. These enumerators serve as events that can be passed to the plug-in.
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
Pocket PC: None
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Send Feedback on this topic to the authors