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.
HRESULT GetParentItem(
[in] HSCOPEITEM item,
[out] HSCOPEITEM *pItemParent,
[out] MMC_COOKIE *pCookie
);
[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.
This method can return one of these values.
If the given item has no parent, NULL is returned.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | mmc.h |
DLL | Mmcndmgr.dll |