Establishes a connection between the simple connection point object and the client's sink.

HRESULT Advise(
   IDispatch*  pdisp,
   DWORD*      pdwCookie
);

Parameters

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.

Expand imageReturn Value

Expand imageRemarks

Expand imageSee Also