Establishes a connection between the simple connection point object and the client's sink.
HRESULT Advise( IDispatch* pdisp, DWORD* pdwCookie );
- pdisp
[in] Pointer to the IDispatch interface on the client's advise sink. The client's sink receives outgoing calls from the simple connection point.
- pdwCookie
[out] Pointer to a returned token that uniquely identifies this connection. The caller uses this token later to delete the connection by passing it to the ISimpleConnectionPoint::Unadvise method. If the connection was not successfully established, this value is zero.
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. |
This method establishes a connection between the simple connection point object and the client's sink.