Function Reference


_SafeArrayCreate

Creates a COM SafeArray with the specified type and dimensions.

_SafeArrayCreate($vType, $cDims, $rgsabound)

Parameters

$vType VARIANT type for the SafeArray elements (e.g., $VT_VARIANT, $VT_I4).
$cDims Number of dimensions in the SafeArray.
$rgsabound Pointer to a SAFEARRAYBOUND structure defining the bounds.

Return Value

Success: Pointer to the created SafeArray.
Failure: 0 and sets @error to 1 (DllCall failure).

Remarks

Uses oleaut32.dll. Caller is responsible for destroying the SafeArray with _SafeArrayDestroy.

Related

_SafeArrayCreateEx, _SafeArrayDestroy, _CreateSafeArrayBounds