Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IExtendView::GetViews method

The GetViews method retrieves information about the extended view and adds extended views to the result pane.

View extensions use the IViewExtensionCallback interface methods to provide information about the extended view. A pointer to the IViewExtensionCallback interface is provided as a parameter of the IExtendView::GetViews method.

Syntax


HRESULT GetViews(
  [in] LPDATAOBJECT            pDataObject,
  [in] LPVIEWEXTENSIONCALLBACK pViewExtensionCallback
);

Parameters

pDataObject [in]

A pointer to the snap-in data object.

pViewExtensionCallback [in]

A pointer to the IViewExtensionCallback interface. The view extension snap-in uses the IViewExtensionCallback interface to add information about the extended view. The snap-in can also call the IViewExtensionCallback::AddView method multiple times to add multiple extended views. The value in pViewExtensionCallback is valid only during the call to IExtendView::GetViews; view extension snap-ins must not save this pointer for later use.

Return value

If successful, the return value is S_OK. Other return values indicate an error code.

Remarks

For more information and a C++ code example for IExtendView::GetViews, see Extending a Primary Snap-in's View.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

See also

IViewExtensionCallback
IViewExtensionCallback::AddView
Extending Views
Extending a Primary Snap-in's View

 

 

Show: