Function Reference


_VariantRead

Reads the value of a VARIANT structure and converts it to an AutoIt type.

_VariantRead($pVariant)

Parameters

$pVariant Pointer to the VARIANT structure.

Return Value

Success: The AutoIt value from the VARIANT.
Failure: Empty string or Default, with @error set to 1 (unsupported VARIANT type).

Remarks

Supports VT_I1, VT_UI1, VT_I2, VT_I4, VT_I8, VT_R4, VT_R8, VT_UI2, VT_UI4, VT_UI8, VT_BSTR, VT_BOOL,
VT_ARRAY|VT_VARIANT, VT_DISPATCH, VT_PTR, VT_ERROR.

Related

_VariantSet, _SysReadString, _AutoItArrayFromSafeArray