Function Reference


_SafeArrayCreateVector

Creates a one-dimensional SafeArray with the specified type and bounds.

_SafeArrayCreateVector($vType, $lLBound, $cElements)

Parameters

$vType VARIANT type for the SafeArray elements (e.g., $VT_VARIANT, $VT_I4).
$lLBound Lower bound of the SafeArray.
$cElements Number of elements in the SafeArray.

Return Value

Success: Pointer to the created SafeArray.
Failure: 0 and sets @error:
1 - Invalid VARIANT type.
2 - Invalid number of elements (< 0).
3 - DllCall failure.

Remarks

Creates a 1D SafeArray. The caller must destroy it using _SafeArrayDestroy.

Related

_SafeArrayCreate, _SafeArrayCreateVectorEx, _SafeArrayDestroy