HRESULT CPropNotifySink::Advise(
IUnknown *pUnkNotifier)
Parameters
*pUnkNotifier
Source interface with which to establish the advise connection. This object must implement IConnectionPointContainer.
Return Code
S_OK or error code.
Comments
Called to establish an advise connection to the given object. If fAddRefSource is TRUE (see constructor), then a reference count is kept on the interface during the connection.
The notifier object is identified by the dispidPropNotifier value passed to the constructor. This DISPID is passed to the OnChanged and OnRequestEdit methods of the caller’s implementation of IPropertyNotifySink, which is passed to the constructor by the pPropNotify parameter.
This method can be called successively. It will call Unadvise to properly disconnect any previous connection.