Returns a handle.
AFTKN_EN_REGISTER or 815
DWORD EventNoticeRegister(ANSISTRING DLLPath; ANSISTRING FunctionName; WORD RegisteredID; WORD Flags)
Text. Fully qualified file name to a dll/exe containing the function to call when an event occurs.
Text. Name of the exported function to call.
A 32-bit ID value that will be passed to the function specified in DLLPath and FunctionName. This provides some flexibility since a pointer or handle can be passed to the memory where the function is handled.
The events you want notification for. The following are valid events:
Handle.
The first important area of code is in Command Execute within the C3PO. GWCommander is used to throw EventNoticeRegister. EventNoticeRegister sets up this association only for the active compose view. If the dialog is not up and focused, the token fails. If the active view is not a compose view, the token fails.