Windows Dev Center

EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

VariantToUInt16WithDefault function

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

Syntax


USHORT VariantToUInt16WithDefault(
  _In_ REFVARIANT varIn,
  _In_ USHORT     uiDefault
);

Parameters

varIn [in]

Type: REFVARIANT

Reference to a source variant structure.

uiDefault [in]

Type: USHORT

Specifies default property value, for use where no value currently exists.

Return value

Type: USHORT

Returns extracted unsigned Int16 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)

 

 

Aggiunte alla community

AGGIUNGI
Mostra:
© 2015 Microsoft