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

AssignAdd

Adds a lock to an assign for multi-directory assigns

Declaration

Source position: amigados.pas line 2306

function AssignAdd(

  const Name: PChar;

  Lock: Pointer

):LongBool;

Arguments

Name

  

Name of the assign (without trailing ':').

Lock

  

Lock associated with the assigned name

Function result

If False the adding failed, lock is not unlocked. IoErr() gives more information.

Description

Adds a lock to an assign, making or adding to a multi-directory assign. Note that this only will succeed on an assign created with AssignLock(), or an assign created with AssignLate() which has been resolved (converted into a AssignLock()-assign).

NOTE: you should not use the lock in any way after making this call successfully. It becomes the part of the assign, and will be unlocked by the system when the assign is removed. If you need to keep the lock, pass a lock from DupLock() to AssignLock().

See also

Lock

  

Lock a directory or file

AssignLock

  

Creates an assignment to a locked object

AssignPath

  

Creates an assignment to a specified path

AssignLate

  

Creates an assignment to a specified path later

DupLock

  

Duplicate a lock

RemAssignList

  

Remove an entry from a multi-dir assign


Documentation generated on: 2021-07-30