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

Lock

Lock a directory or file

Declaration

Source position: amigados.pas line 1669

function Lock(

  const name: pCHAR;

  type_: LongInt

):LongInt;

function Lock(

  const name: string;

  type_: LongInt

):LongInt;

Arguments

name

  

Name of file or directory to lock

Function result

Pointer to lock or nil

Arguments

name

  

Name of file or directory to lock

Description

Gets a lock on a file or directory. There may be more than one shared lock on a file but only one if it is an exclusive one. Locked files or directories may not be deleted.

See also

UnLock

  

Unlock a directory or file

DupLock

  

Duplicate a lock

ChangeMode

  

Change the current mode of a lock or filehandle

NameFromLock

  

Returns the name of a locked object

DupLockFromFH

  

Gets a lock on an open file


Documentation generated on: 2021-07-30