IPropertySheetProvider::FindPropertySheet method (mmc.h)
The IPropertySheetProvider::FindPropertySheet method determines whether a specific property sheet exists.
Syntax
HRESULT FindPropertySheet(
HSCOPEITEM hItem,
[in] LPCOMPONENT lpComponent,
[in] LPDATAOBJECT lpDataObject
);
Parameters
hItem
A handle to the selected item in the scope pane.
[in] lpComponent
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.
[in] lpDataObject
A pointer to the IDataObject interface on the data object.
Return value
This method can return one of these values.
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | mmc.h |
DLL | Mmcndmgr.dll |