Duplicate a lock
Source position: amigados.pas line 1670
function DupLock( |
lock: LongInt |
):LongInt; |
lock |
|
Lock to copy |
Result 0 indicates an error.
DupLock() is passed a shared filing system lock. This is the only way to obtain a duplicate of a lock... simply copying is not allowed.
Another lock to the same object is then returned. It is not possible to create a copy of a exclusive lock.
|
Lock a directory or file |
|
|
Unlock a directory or file |
|
|
Gets a lock on an open file |
|
|
Returns a lock on the parent directory of a file |