Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
VariantGetInt64Elem
Collapse the table of content
Expand the table of content

VariantGetInt64Elem function

Extracts a single Int64 element from a variant structure.

Syntax


HRESULT VariantGetInt64Elem(
  _In_  REFVARIANT var,
  _In_  ULONG      iElem,
  _Out_ LONGLONG   *pnVal
);

Parameters

var [in]

Type: REFVARIANT

Reference to a source variant structure.

iElem [in]

Type: ULONG

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

pnVal [out]

Type: LONGLONG*

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

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 Additions

ADD
Show:
© 2015 Microsoft