INamedPropertyStore::GetNamedValue method

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

Syntax


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

Parameters

pszName [in]

Type: LPCWSTR

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

pv [out]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Propsys.h

IDL

Propsys.idl

 

 

Show: