WinRTPropertyValueToPropVariant function (propsys.h)

Copies the content from a Windows runtime property value to a PROPVARIANT structure.

Syntax

PSSTDAPI WinRTPropertyValueToPropVariant(
  [in, optional] IUnknown    *punkPropertyValue,
  [out]          PROPVARIANT *ppropvar
);

Parameters

[in, optional] punkPropertyValue

A pointer to the IUnknown interface from which this function can access the contents of a Windows runtime property value by retrieving and using the Windows::Foundation::IPropertyValue interface.

[out] ppropvar

Pointer to a PROPVARIANT structure. When this function returns, the PROPVARIANT contains the converted info.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header propsys.h
Library Propsys.lib
DLL Propsys.dll

See also

PropVariantToWinRTPropertyValue