EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

VariantToStringAlloc function

Extracts the variant value of a variant structure to a newly-allocated string. If no value can be extracted, then a default value is assigned.

Syntax


HRESULT VariantToStringAlloc(
  _In_  REFVARIANT varIn,
  _Out_ PWSTR      ppszBuf
);

Parameters

varIn [in]

Type: REFVARIANT

Reference to a source variant structure.

ppszBuf [out]

Type: PWSTR

Pointer to the extracted property value if one exists; otherwise, empty.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Redistributable

Windows Desktop Search (WDS) 3.0

Header

Propvarutil.h

Library

Propsys.lib

DLL

Propsys.dll (version 6.0 or later)

 

 

コミュニティの追加

追加
表示:
© 2015 Microsoft