Function Reference


_SafeArrayRelease

Decrements the reference count of a SafeArray previously incremented by _SafeArrayAddRef.

_SafeArrayRelease($pSafeArray)

Parameters

$pSafeArray Pointer to the SafeArray.

Return Value

Success: 0 (S_OK).
Failure: Non-zero HRESULT and sets @error:
1 - Invalid SafeArray pointer.
2 - DllCall failure.

Remarks

Must be called to release a SafeArray after _SafeArrayAddRef. Does not destroy the SafeArray unless the
reference count reaches zero.

Related

_SafeArrayAddRef, _SafeArrayDestroy