Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a VARIANT structure from a specified variant element.
Syntax
HRESULT VariantGetElem(
[in] REFVARIANT varIn,
[in] ULONG iElem,
[out] VARIANT *pvar
);
Parameters
[in] varIn
Type: REFVARIANT
Reference to a source variant structure.
[in] iElem
Type: ULONG
Specifies index of source variant structure element. If source structure is empty, then this parameter is not used.
[out] pvar
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
| 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 |
| Redistributable | Windows Desktop Search (WDS) 3.0 |