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

OpenFromLock

Opens a file you have a lock on

Declaration

Source position: amigados.pas line 1686

function OpenFromLock(

  lock: LongInt

):LongInt;

Arguments

lock

  

Lock on object to be opened.

Function result

Newly opened file handle or nil for failure

Description

Given a lock, this routine performs an open on that lock. If the open succeeds, the lock is (effectively) relinquished, and should not be UnLock()ed or used. If the open fails, the lock is still usable. The lock associated with the file internally is of the same access mode as the lock you gave up - shared is similar to MODE_OLDFILE, exclusive is similar to MODE_NEWFILE.

See also

DosOpen

  

Open a file for input or output

DosClose

  

Lock

  

Lock a directory or file

UnLock

  

Unlock a directory or file


Documentation generated on: 2021-07-30