IConsoleNameSpace::GetParentItem method (mmc.h)
The IConsoleNameSpace2::GetParentItem method enables the snap-in to retrieve the handle to a parent item in the scope view.
Syntax
HRESULT GetParentItem(
[in] HSCOPEITEM item,
[out] HSCOPEITEM *pItemParent,
[out] MMC_COOKIE *pCookie
);
Parameters
[in] item
A handle to an item in the scope pane.
[out] pItemParent
A pointer to the handle to the parent item that is returned.
[out] pCookie
A pointer to the cookie associated with the parent item that is returned.
Return value
This method can return one of these values.
Remarks
If the given item has no parent, NULL is returned.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | mmc.h |
DLL | Mmcndmgr.dll |