Share via


IExtendPropertySheet2::QueryPagesFor method

The IExtendPropertySheet2::QueryPagesFor method determines whether the object requires pages.

Syntax

HRESULT QueryPagesFor(
  [in] LPDATAOBJECT lpDataObject
);

Parameters

  • lpDataObject [in]
    A pointer to the IDataObject interface on the object that contains context information about the scope or result item.

Return value

This method can return one of these values.

  • S_OK
    Properties exist for this data object.

  • E_UNEXPECTED
    An unexpected error occurred.

  • E_INVALID
    The parameter is invalid.

  • S_FALSE
    No pages are supplied for the data object.

Remarks

The console calls this method to determine whether the Properties menu item should be added to the context menu.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

See also

IDataObject

IExtendPropertySheet2

IPropertySheetCallback

Adding Property Pages and Wizard Pages