Registers a third party handler to receive callbacks when the user takes an action on an open compose view that would result in the message being sent, saved, or closed. Note that this function is different from EventNoticeRegister() in the callback function must support a third parameter which after a successful send will contain the message ID of the message in the database.
AFTKN_EN_REGISTER_EX or 944
DWORD EventNoticeRegisterEX( ANSISTRING DLLPath; ANSISTRING FunctionName; DWORD RegisteredID; DWORD 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. The function should adhere to the following specifications:
HRESULT_stdcall (DWORD dwId, DWORD dwNotifyType, char *pMsgId);
dwId - The RegisteredID
that is passed into EventNoticeRegisterEx().
dwNotifyType - Will be one of the following:
pMsgId - The GroupWise message ID of the message that was just created. This parameter is only non-null for the EVT_GROUPWISE_SEND_ITEM_COMPLETED notification.
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:
Returns a DWORD containing a handle that must be passed to EventNoticeUnregistered() in order to free up memory that was allocated for the event tracking.