BCGControlBar Pro for MFC
int CBCGPShellManager::GetParentItem ( LPCITEMIDLIST  lpidl,
LPITEMIDLIST &  lpidlParent 
)

Retrieves the parent item of the specified item

Returns
A level of the parent item list relative to the desktop item (0 - desktop).

Call this function to retrieve the parent item list of the specified by lpidl item list.

Parameters
lpidlA PIDL whose parent should be retrieved.
lpidlParentA reference to PIDL that will contain the parent.