IPropertyStore::GetValue method (propsys.h)
This method retrieves the data for a specific property.
Syntax
HRESULT GetValue(
REFPROPERTYKEY key,
PROPVARIANT *pv
);
Parameters
key
TBD
pv
After the IPropertyStore::GetValue
method returns successfully, this parameter points to a PROPVARIANT structure that contains data about the property.
Return value
Returns S_OK or INPLACE_S_TRUNCATED if successful, or an error value otherwise.
INPLACE_S_TRUNCATED is returned to indicate that the returned PROPVARIANT was converted into a more canonical form. For example, this would be done to trim leading or trailing spaces from a string value. You must use the SUCCEEDED macro to check the return value, which treats INPLACE_S_TRUNCATED as a success code. The SUCCEEDED macro is defined in the Winerror.h file.
Remarks
If the PROPERTYKEY referenced in key is not present in the property store, this method returns S_OK and the vt member of the structure that is pointed to by pv is set to VT_EMPTY.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available with Windows Vista and later versions of the Windows operating system. |
Target Platform | Universal |
Header | propsys.h |
Library | Propsys.idl |
IRQL | All levels |