VariantGetUInt16Elem function (propvarutil.h)

Extracts a single unsigned Int16 element from a variant structure.

Syntax

PSSTDAPI VariantGetUInt16Elem(
  [in]  REFVARIANT var,
  [in]  ULONG      iElem,
  [out] USHORT     *pnVal
);

Parameters

[in] var

Type: REFVARIANT

Reference to a source variant structure.

[in] iElem

Type: ULONG

Specifies a vector or array index; otherwise, value must be 0.

[out] pnVal

Type: USHORT*

Pointer to the extracted element value.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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