IExtendView::GetViews method (mmc.h)

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

[in] pDataObject

A pointer to the snap-in data object.

[in] pViewExtensionCallback

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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h

See also

Extending Views

Extending a Primary Snap-in's View

IViewExtensionCallback

IViewExtensionCallback::AddView