Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

VariantGetElem function

Initializes a VARIANT structure from a specified variant element.

Syntax


HRESULT VariantGetElem(
  _In_  REFVARIANT varIn,
  _In_  ULONG      iElem,
  _Out_ VARIANT    *pvar
);

Parameters

varIn [in]

Type: REFVARIANT

Reference to a source variant structure.

iElem [in]

Type: ULONG

Specifies index of source variant structure element. If source structure is empty, then this parameter is not used.

pvar [out]

Type: VARIANT*

Pointer to the values specified from the source variant structure.

Return value

Type: HRESULT

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

Remarks

This is an inline function, with its source code provided in the header. It is not included in any .dll or .lib file.

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft