IShellFolder2::GetDetailsEx method

Gets detailed information, identified by a property set identifier (FMTID) and a property identifier (PID), on an item in a Shell folder.

Syntax

HRESULT GetDetailsEx(
  PCUITEMID_CHILD  pidl,
  const SHCOLUMNID *pscid,
  VARIANT          *pv
);

Parameters

pidl

Type: PCUITEMID_CHILD

A PIDL of the item, relative to the parent folder. This method accepts only single-level PIDLs. The structure must contain exactly one SHITEMID structure followed by a terminating zero. This value cannot be NULL.

pscid

Type: const SHCOLUMNID*

A pointer to an SHCOLUMNID structure that identifies the column.

pv

Type: VARIANT*

A pointer to a VARIANT with the requested information. The value is fully typed. The value returned for properties from the property system must conform to the type specified in that property definition's typeInfo as the legacyType attribute.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This function is a more robust version of IShellFolder2::GetDetailsOf. It provides access to the information that is displayed in the Windows Explorer Details view of a Shell folder. The primary difference is that GetDetailsEx allows you to identify the column with an FMTID and PID structure instead of having to first determine the column index.

Requirements

   
Minimum supported client Windows 2000 Professional, Windows XP [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.0 or later)