Retrieves the value that identifies a custom event.
Syntax
HRESULT GetEventCookie( LPOLESTR pchEvent, LONG *plEventCookie );
Parameters
- pchEvent
- [in] Address of a string that specifies the name of the event.
- plEventCookie
- [out] Address of a long variable that identifies the custom event specified by pchEvent.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
A custom event must be registered through a call to the IElementBehaviorSiteOM::RegisterEvent method.