Returns the name of a locked object
Source position: amigados.pas line 2502
function NameFromLock( |
Lock: LongInt; |
Buffer: PChar; |
Len: LongInt |
):LongBool; |
Lock |
|
Lock of object to be examined. |
Buffer |
|
Buffer to store name. |
Returns a fully qualified path for the lock. This routine is guaranteed not to write more than len characters into the buffer. The name will be null-terminated.
NOTE: if the volume is not mounted, the system will request it (unless of course you set pr_WindowPtr to -1). If the volume is not mounted or inserted, it will return an error. If the lock passed in is nil, 'SYS:' will be returned. If the buffer is too short, an error will be returned, and IoErr() will return ERROR_LINE_TOO_LONG.
|
Get the name of an open filehandle |
|
|
Lock a directory or file |