[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)

NameFromLock

Returns the name of a locked object

Declaration

Source position: amigados.pas line 2310

function NameFromLock(

  Lock: BPTR;

  Buffer: STRPTR;

  Length: LongInt

):LongBool;

Arguments

Lock

  

Lock of object to be examined.

Buffer

  

Buffer to store name.

Length

  

Length of buffer.

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: 2017-01-10