共用方式為


IConnectionPointImpl::Advise

Establishes a connection between the connection point and a sink.

STDMETHOD(Advise)( 
   IUnknown* pUnkSink, 
   DWORD* pdwCookie  
);

Remarks

Use Unadvise to terminate the connection call.

See IConnectionPoint::Advise in the Windows SDK.

Requirements

Header: atlcom.h

See Also

Reference

IConnectionPointImpl Class