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

OpenFromLock

Opens a file you have a lock on

Declaration

Source position: amigados.pas line 2262

function OpenFromLock(

  Lock: Pointer

):Pointer;

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