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

ChangeMode

Change the current mode of a lock or filehandle

Declaration

Source position: amigados.pas line 2274

function ChangeMode(

  Type_: LongWord;

  Object_: Pointer;

  NewMode: LongWord

):LongBool;

Arguments

Type_

  

Either CHANGE_FH or CHANGE_LOCK

Object_

  

A lock or filehandle

NewMode

  

The new mode you want

Description

This allows you to attempt to change the mode in use by a lock or filehandle. For example, you could attempt to turn a shared lock into an exclusive lock. The handler may well reject this request. Warning: if you use the wrong type for the object, the system may crash.

See also

Lock

  

Lock a directory or file

DosOpen

  

Open a file for input or output


Documentation generated on: 2021-07-30