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

GetProgramDir

Returns a lock on the directory the program was loaded from

Declaration

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.

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: 2017-01-10