AtlAdvise

HRESULTAtlAdvise( IUnknown*pUnkCP,IUnknown*pUnk,constIID&iid,LPDWORDpdw );

Return Value

A standard HRESULT value.

Parameters

pUnkCP

[in] A pointer to the IUnknown of the object the client wants to connect with.

pUnk

[in] A pointer to the client's IUnknown.

iid

[in] The GUID of the connection point. Typically, this is the same as the outgoing interface managed by the connection point.

pdw

[out] A pointer to the cookie that uniquely identifies the connection.

Remarks

Creates a connection between an object's connection point and a client's sink. The sink implements the outgoing interface supported by the connection point. The client uses the pdw cookie to remove the connection by passing it to AtlUnadvise.

ATL Macros and Global Functions