Lock a directory or file
Source position: amigados.pas line 1669
function Lock( |
const name: pCHAR; |
type_: LongInt |
):LongInt; |
const name: string; |
type_: LongInt |
):LongInt; |
name |
|
Name of file or directory to lock |
Pointer to lock or nil
name |
|
Name of file or directory to lock |
Gets a lock on a file or directory. There may be more than one shared lock on a file but only one if it is an exclusive one. Locked files or directories may not be deleted.
|
Unlock a directory or file |
|
|
Duplicate a lock |
|
|
Change the current mode of a lock or filehandle |
|
|
Returns the name of a locked object |
|
|
Gets a lock on an open file |