VariantToStringWithDefault
TOC
Collapse the table of content
Expand the table of content

VariantToStringWithDefault function

Extracts the string property value of a variant structure. If no value exists, then the specified default value is returned.

Syntax


PCWSTR VariantToStringWithDefault(
  _In_ REFVARIANT varIn,
  _In_ LPCWSTR    pszDefault
);

Parameters

varIn [in]

Type: REFVARIANT

Reference to a source variant structure.

pszDefault [in]

Type: LPCWSTR

Pointer to the default Unicode string property value, for use where no value currently exists.

Return value

Type: PCWSTR

Returns the extracted string value, or default.

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)

 

 

Community Additions

ADD
Show:
© 2016 Microsoft