Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This method retrieves the advisory connection on the object if there is one and returns the parameters used in the most recent call to the IViewObject::SetAdvisemethod.
Syntax
HRESULT GetAdvise( DWORD* pdwAspect, DWORD* padvf, IAdviseSink** ppAdvSink ); |
Parameters
- pdwAspect
-
[out] Pointer to where the dwAspectparameter from the previous SetAdvisecall is returned.
If this pointer is NULL, the caller does not permit this value to be returned.
- padvf
-
[out] Pointer to where the advfparameter from the previous SetAdvisecall is returned.
If this pointer is NULL, the caller does not permit this value to be returned.
- ppAdvSink
-
[out] Address of IAdviseSink* pointer variable that receives the interface pointer to the advise sink.
The connection to this advise sink must have been established with a previous SetAdvisecall, which provides the pAdvSinkparameter.
If * ppvAdvSinkis NULL, there is no established advisory connection.
Return Value
This method supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well S_OK, which indicates that the existing advisory connection was retrieved.
Remarks
To determine whether the platform supports this interface, see Determining Supported COM APIs.
Requirements
Header | Oleidl.h, oleidl.idl |
Library | oleaut32.lib, uuid.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |