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

GetProgramDir

Returns a lock on the directory the program was loaded from

Declaration

Source position: amigados.pas line 1657

function GetProgramDir: LongInt;

Function result

A lock on the directory the current program was loaded from, or nil if loaded from resident list, etc.

Description

Returns a shared lock on the directory the program was loaded from. This can be used for a program to find data files, etc, that are stored with the program, or to find the program file itself. nil returns are valid, and may occur, for example, when running a program from the resident list. You should not unlock the lock.

See also

SetFileSysTask

  

Sets the default filesystem for the process

DosOpen

  

Open a file for input or output


Documentation generated on: 2021-07-30