Retrieves the existing advisory connection on the object if there is one. This method simply returns the parameters used in the most recent call to the IViewObject::SetAdvise method.
HRESULT GetAdvise(
DWORD * pdwAspect, //Pointer to where dwAspect parameter from
//previous SetAdvise call is returned
DWORD * padvf, //Pointer to where advf parameter from
//previous SetAdvise call is returned
IAdviseSink ** ppAdvSink
//Address of output variable that receives the
//IAdviseSink interface pointer
);
This method supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following:
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in oleidl.h.
ADVF, IAdviseSink, IViewObject::SetAdvise