Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#os4units]

NameFromLock

Returns the name of a locked object

Declaration

Source position: amigados.pas line 2502

function NameFromLock(

  Lock: LongInt;

  Buffer: PChar;

  Len: LongInt

):LongBool;

Arguments

Lock

  

Lock of object to be examined.

Buffer

  

Buffer to store name.

Description

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.

See also

NameFromFH

  

Get the name of an open filehandle

Lock

  

Lock a directory or file


Documentation generated on: 2021-07-30