Partager via


CShellManager::GetParentItem

Retrieves the parent of a pointer to an item identifier list (PIDL).

int GetParentItem(
   LPCITEMIDLIST lpidl,
   LPITEMIDLIST& lpidlParent 
);

Parameters

  • [in] lpidl
    A PIDL whose parent will be retrieved.

  • [out] lpidlParent
    A reference to a PIDL where the method will store the result.

Return Value

The level of the parent PIDL.

Remarks

The level of a PIDL is relative to the desktop. The desktop PIDL is considered to have a level of 0.

Requirements

Header: afxshellmanager.h

See Also

Reference

CShellManager Class

Hierarchy Chart