EN
此内容没有您的语言版本,但有英语版本。

VariantToInt16WithDefault function

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

Syntax


SHORT VariantToInt16WithDefault(
  _In_  REFVARIANT varIn,
  _In_  SHORT iDefault
);

Parameters

varIn [in]

Type: REFVARIANT

Reference to a source variant structure.

iDefault [in]

Type: SHORT

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

Return value

Type: SHORT

Returns the extracted 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)

 

 

社区附加资源

添加
显示:
© 2014 Microsoft