CItemIDFactory::GetPropertyFromIDList(PCUIDLIST_RELATIVE,PCWSTR,PROPVARIANT*) method (shidfact.h)

Gets a property from the IPropertyStore within the IDList as a variant, using the key.

Syntax

HRESULT GetPropertyFromIDList(
  [in]  PCUIDLIST_RELATIVE pidl,
  [in]  PCWSTR             pszName,
  [out] PROPVARIANT        *pv
);

Parameters

[in] pidl

A PIDL identifying the IPropertyStore.

[in] pszName

The key for the selected property.

[out] pv

When this method returns, contains a pointer to the property. If rkey is not found, pvar will be VT_EMPTY.

Return value

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

Remarks

This method is useful when using IShellFolder2::GetDetailsEx, as is returns a variant rather than a PROPVARIANT.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shidfact.h

See also

CItemIDFactory

GetPropertyFromIDList

IPropertyStore

IShellFolder2::GetDetailsEx