Locks a portion of a file
Source position: amigados.pas line 2717
function LockRecord( |
Fh: LongInt; |
Offset: Int64; |
Length: Int64; |
Mode: LongWord; |
TimeOut: LongWord |
):LongBool; |
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 (REC_*) For the IMMED modes, the timeout is ignored. |
TimeOut |
|
imeout interval in ticks (1/50 seconds). 0 is legal. |
Lock a portion of a file for exclusive access. A timeout may be specified which is the maximum amount of time to wait for the record to be available.
|
Lock a series of records |
|
|
Unlock a record |
|
|
Unlock a list of records |