VariantGetElementCount function (propvarutil.h)

Retrieves the element count of a variant structure.

Syntax

PSSTDAPI_(ULONG) VariantGetElementCount(
  [in] REFVARIANT varIn
);

Parameters

[in] varIn

Type: REFVARIANT

Reference to a source variant structure.

Return value

Type: ULONG

Returns the element count for values of type VT_ARRAY; otherwise, returns 1.

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