This topic has not yet been rated - Rate this topic

IViewObject::GetAdvise method

Applies to: desktop apps only

Retrieves the advisory connection on the object that was used in the most recent call to IViewObject::SetAdvise.

Syntax

HRESULT GetAdvise(
  [out]  DWORD *pAspects,
  [out]  DWORD *pAdvf,
  [out]  IAdviseSink **ppAdvSink
);

Parameters

pAspects [out]

Pointer to where the dwAspect parameter from the previous IViewObject::SetAdvise call is returned. If this pointer is NULL, the caller does not permit this value to be returned.

pAdvf [out]

Pointer to where the advf parameter from the previous IViewObject::SetAdvise call 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 IViewObject::SetAdvise call, which provides the pAdvSink parameter. If ppvAdvSink is NULL, there is no established advisory connection.

Return value

This method returns S_OK on success.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IViewObject is defined as 0000010d-0000-0000-C000-000000000046

See also

IViewObject
ADVF
IAdviseSink
IViewObject::SetAdvise

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ