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

DupLockFromFH

Gets a lock on an open file

Declaration

Source position: amigados.pas line 2497

function DupLockFromFH(

  Fh: LongInt

):LongInt;

Function result

Obtained lock or 0 for failure

Description

Obtain a lock on the object associated with fh. Only works if the file was opened using a non-exclusive mode. Other restrictions may be placed on success by the filesystem.

See also

DupLock

  

Duplicate a lock

Lock

  

Lock a directory or file

UnLock

  

Unlock a directory or file


Documentation generated on: 2021-07-30