Advise with Notification

HRESULT Advise(
IUnknown pUnkSrc, 
IUnknown pUnkNotify, 
BOOL fAddRefNotify /* = TRUE */ )

Parameters

pUnkNotifier

Object from which notifications are originating. This object must implement IConnectionPointContainer.

pUnkNotify

Object to receive notifications. This object must implement the notification interface identified by the riid argument of the constructor.

fAddRefNotify

TRUE if pUnkNotify should have its reference count incremented during the advise connection (notification).

Comments

Advise can be called successively without calling Unadvise. Any previous advise connection will be implicitly disconnected on the behalf of the caller.