(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/dos.h>

BPTR SetProgramDir (lock)

LOCATION
In DOSBase at offset 99

SYNOPSIS
BPTR lock

FUNCTION
This function will set a shared lock on the directory that the current program was loaded from. This can be accessed through the path PROGDIR:. The use of this path is to allow the program to easily access files which are supplied with the program.

INPUTS
lock
The lock to set as the new program directory. NULL is a valid value.

RESULT
This function will return the old program directory lock.

EXAMPLE

SEE ALSO
GetProgramDir()

NOTES
This function will not duplicate the lock, so you should not free the lock.

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
05.10.1997 iaint
Implemented these
24.02.1997 iaint
Some new DOS function, required by locale
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column