Registers a custom Dynamic HTML (DHTML) behavior event.
Syntax
HRESULT RegisterEvent( LPOLESTR pchEvent, LONG lReserved, LONG *plEventCookie );
Parameters
- pchEvent
- [in] Address of a string that specifies the name of the event to register.
- lReserved
- [in] Reserved for future use.
- plEventCookie
- Address of a long variable that identifies the custom event specified by pchEvent. This value is used by the IElementBehaviorSiteOM::FireEvent and IElementBehaviorSiteOM::GetEventCookie methods.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
A DHTML behavior must call this method for MSHTML to recognize the custom event.