Function Reference


_SafeArrayUnlock

Unlocks a previously locked SafeArray, decrementing its lock count.

_SafeArrayUnlock($pSafeArray)

Parameters

$pSafeArray Pointer to the SafeArray to unlock.

Return Value

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

Remarks

Must be called after _SafeArrayLock to release the lock. The SafeArray remains locked until the lock count
reaches zero. Use with _SafeArrayAccessData to ensure safe data manipulation.

Related

_SafeArrayLock, _SafeArrayAccessData, _SafeArrayUnaccessData