LPSTR GetDOSEnvironment()
This function returns a far pointer to the environment string of the currently running task. See Microsoft MS-DOS Programmer's Reference for more information on the format and contents of the environment string.
This function has no parameters.
Unlike an application, a dynamic-link library (DLL) does not have a copy of the environment string. As a result, a library must call this function to retrieve the environment string.