Function Reference


_StreamUnlockRegion

Removes a previously set lock using IStream::UnlockRegion.

_StreamUnlockRegion(ByRef $oStream, $iOffset, $iLength, $dwLockType)

Parameters

$oStream IStream COM object.
$iOffset Starting offset of the region to unlock.
$iLength Length of the region to unlock.
$dwLockType Type of lock to remove.

Return Value

Success: 1
Failure: 0, sets @error to:
1 - Invalid stream object.
2 - COM error (HRESULT in @extended).

Remarks

Must match the parameters used in _StreamLockRegion.

Related

_StreamLockRegion