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.

IPropertySheetProvider::FindPropertySheet method

The IPropertySheetProvider::FindPropertySheet method determines whether a specific property sheet exists.

Syntax


HRESULT FindPropertySheet(
       hScopeItem   HSCOPEITEM,
  [in] LPCOMPONENT  lpComponent,
  [in] LPDATAOBJECT lpDataObject
);

Parameters

HSCOPEITEM

A handle to the selected item in the scope pane.

lpComponent [in]

A pointer to the IComponent interface on the selected object. NULL if the object selected is a folder (on the scope or result panes), and IComponent of the snap-in if it is a result pane leaf item.

lpDataObject [in]

A pointer to the IDataObject interface on the data object.

Return value

This method can return one of these values.

S_OK

The property sheet was successfully located and was brought to the foreground.

S_FALSE

A property sheet was not found.

Remarks

Items in the scope pane are owned by the console so there is no need to interact with the IComponentData interface. The snap-in must implement IComponent::CompareObjects or IComponentData::CompareObjects to compare the data object with other data objects for existing property sheets.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IPropertySheetProvider

 

 

Show: