INamedPropertyStore::GetNamedValue method (propsys.h)

Gets the value of a named property from the named property store.

Syntax

HRESULT GetNamedValue(
  [in]  LPCWSTR     pszName,
  [out] PROPVARIANT *ppropvar
);

Parameters

[in] pszName

Type: LPCWSTR

A pointer to the property name, as a Unicode string, of the property in the named property store.

[out] ppropvar

Type: PROPVARIANT*

When this method returns, contains a pointer to a PROPVARIANT structure that holds the property's value.

Return value

Type: HRESULT

Returns S_OK if successful, or an error value otherwise.

If the property named in pszName is not found in the property store, this method returns S_OK and the pv member is set to VT_EMPTY.

Requirements

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