Lock a portion of a file for exclusive access.
Source position: amigados.pas line 2295
function LockRecord64( |
fh: LongInt; |
Offset: QWord; |
Length: QWord; |
Mode: LongWord; |
TimeOut: LongWord |
):LongInt; |
fh |
|
file handle for the file to lock a record of |
Offset |
|
starting position of the lock |
Length |
|
length of the record in bytes |
Mode |
|
lock type |
TimeOut |
|
timeout interval measured in ticks (may be 0) |
A timeout may be specified which is the maximum amount of time to wait for the record to be available.
Record locks are cooperative, meaning that they only affect other calls to LockRecord().
|
Lock several records at the same time. |
|
|
Release a lock made with LockRecord64(). |