Sign in Join
FPDoc Onlineexperiment

IStream.LockRegion function

Member of IStreamIn unit Types

Lock a region of bytes in the stream.

Declaration

pascal
function LockRegion(libOffset: LargeUint; cb: LargeUint; 
 dwLockType: DWORD): HRESULT

Description

LockRegion locks a region of the storage, starting at libOffset, for cbCount bytes. The applied lock is of type dwLockType. The function returns zero if the lock was successfully applied.

Errors

On error, a nonzero exit code is returned.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.