Windows Dev Center

EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

PropVariantToWinRTPropertyValue function

Extracts a Windows runtime property value from a PROPVARIANT structure. If no value can be extracted, a default value is assigned.

Syntax


HRESULT PropVariantToWinRTPropertyValue(
  _In_   REFPROPVARIANT propvar,
  _In_   REFIID riid,
  _Out_  void **ppv
);

Parameters

propvar [in]

Reference to a source PROPVARIANT structure.

riid [in]

Reference to the requested IID.

ppv [out]

A pointer to a memory space that receives a pointer to the interface requested in riid. This is typically Windows::Foundation::IPropertyValue.

Return value

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

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Propsys.h

Library

Propsys.lib

DLL

Propsys.dll

See also

WinRTPropertyValueToPropVariant

 

 

Send comments about this topic to Microsoft

Build date: 6/28/2013

Community-Beiträge

Anzeigen:
© 2015 Microsoft