CComQIPtr::Advise

HRESULT Advise( IUnknown* pUnk, const IID& iid, LPDWORD pdw );

Return value

A standard HRESULT value. Can be one of the following values:

See IConnectionPoint::Advise in the Platform SDK for a description of these return values.

Parameters

pUnk

[in] Pointer to the IUnknown interface of the sink object. This object sinks events from the event source of the object referred to by the smart pointer.

iid

[in] IID for the outgoing interface managed by the connection point.

pdw

[out] Returned token that uniquely identifies this connection.

Remarks

Establishes a connection point with the object pointed to by this smart pointer.

CComQIPtr OverviewClass Members