IShellItem::GetParent method

Gets the parent of an IShellItem object.

Syntax

HRESULT GetParent(
  IShellItem **ppsi
);

Parameters

ppsi

Type: IShellItem**

The address of a pointer to the parent of an IShellItem interface.

Return Value

Type: HRESULT

Returns S_OK if successful, or an error value otherwise.

Requirements

   
Minimum supported client Windows XP with SP1 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 5.00 or later)

See Also

IShellFolder

IShellItem