DosGetEnv
Bindings: C, MASM
This call returns the address of the process environment string for the
current process.
DosGetEnv (EnvSegment, CmdOffset)
EnvSegment (PSEL) - output
Address of the selector for the environment segment.
CmdOffset (PUSHORT) - output
Address of the offset to the command line within the environment
segment.
rc (USHORT) - return
Return code descriptions are:
0 NO_ERROR
12 ERROR_INVALID_ACCESS
Remarks
DosGetEnv can be used by dynamic link library routines that need to
determine the environment for the current process.
When a process issues DosExecPgm to start another process, the program
that receives control is returned a pointer to the environment segment.
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs