Adds a lock to an assign for multi-directory assigns
Source position: amigados.pas line 2544
function AssignAdd( |
const Name: PChar; |
Lock: LongInt |
):LongBool; |
Name |
|
Name of the assign (without trailing ':'). |
Lock |
|
Lock associated with the assigned name |
If False the adding failed, lock is not unlocked. IoErr() gives more information.
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().
|
Lock a directory or file |
|
|
Creates an assignment to a locked object |
|
|
Creates an assignment to a specified path |
|
|
Creates an assignment to a specified path later |
|
|
Duplicate a lock |
|
|
Remove an entry from a multi-dir assign |