Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Extracts the string property value of a variant structure. If no value exists, then the specified default value is returned.
Syntax
PSSTDAPI_(PCWSTR) VariantToStringWithDefault(
[in] REFVARIANT varIn,
[in] LPCWSTR pszDefault
);
Parameters
[in] varIn
Type: REFVARIANT
Reference to a source variant structure.
[in] pszDefault
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
Requirement | Value |
---|---|
Minimum supported client | Windows XP with SP2, Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 with SP1 [desktop apps only] |
Target Platform | Windows |
Header | propvarutil.h |
Library | Propsys.lib |
DLL | Propsys.dll (version 6.0 or later) |
Redistributable | Windows Desktop Search (WDS) 3.0 |