Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Binds an event to an object.
Syntax
HRESULT BindHandler(
LPCOLESTR pstrEvent,
IDispatch* pdisp
);
Parameters
pstrEvent
[in] Specifies the event to handle.
pdisp
[in] Specifies the object to handle the event.
Return Value
The method returns an HRESULT
. Possible values include, but are not limited to, those in the following table.
Value | Description |
---|---|
S_OK |
The method succeeded. |
Remarks
This method binds an event to an object.