[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'amigados' (#aros)


Returns a lock on the directory the program was loaded from


Source position: amigados.pas line 2344

function GetProgramDir: BPTR;

Function result

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


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



Sets the default filesystem for the process



Open a file for input or output

Documentation generated on: 2017-01-10