Function Reference


_SafeArrayGetUBound

Retrieves the upper bound of a specified SafeArray dimension.

_SafeArrayGetUBound($pSafeArray, $iDim, ByRef $iBound)

Parameters

$pSafeArray Pointer to the SafeArray.
$iDim Dimension number (1-based).
$iBound [out] Upper bound of the dimension.

Return Value

Success: 0
Failure: Non-zero HRESULT and sets @error to 1 (DllCall failure).

Remarks

Used to determine the size of a SafeArray dimension.

Related

_SafeArrayGetLBound, _SafeArrayGetDim