|
IViewObject::GetAdvise
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,
| //Points to location of dwAspect parameter from previous SetAdvise
| DWORD * padvf,
| //Points to location of advf parameter from previous SetAdvise
| IAdviseSink ** ppAdvSink
| //Points to location of pAdvSink parameter from previous SetAdvise
| );
|
|
Parameters
pdwAspect
[out]Points to location where the dwAspect parameter from the previous SetAdvise call is returned. If this pointer is NULL, the caller does not permit this
value to be returned.
padvf
[out]Points to location where the advf parameter from the previous SetAdvise call is returned. If this pointer is NULL, the caller does not permit this
value to be returned.
ppAdvSink
[out]Points to location where the pAdvSink parameter from the previous SetAdvise call is returned. If this pointer is NULL, the caller does not permit this
value to be returned.
Return Values
S_OK
The existing advisory connection was retrieved.
E_INVALIDARG
An invalid advf flag was specified.
E_OUTOFMEMORY
Ran out of memory.
See Also
ADVF, IAdviseSink, IViewObject::SetAdvise
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|