EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

VariantToInt32 function

Extracts an Int32 property value of a variant structure. If no value can be extracted, then a default value is assigned.

Syntax


HRESULT VariantToInt32(
  _In_   REFVARIANT varIn,
  _Out_  LONG *plRet
);

Parameters

varIn [in]

Type: REFVARIANT

Reference to a source variant structure.

plRet [out]

Type: LONG*

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

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)

 

 

Community-Beiträge

HINZUFÜGEN
Anzeigen:
© 2014 Microsoft