Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Get_Config_Directory
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vmm.inc
 
VMMcall Get_Config_Directory
 
mov     [WinDir], edx       ; points to the Windows directory
 
The Get_Config_Directory service returns a pointer to a null-terminated
string that specifies the fully qualified path of the directory containing
the Windows configuration files. Virtual devices use this service to locate
files such as SYSTEM.INI.
 
This service is available during initialization only.
 
This service has no parameters.
 
Return Value
 
The EDX register points to the null-terminated string specifying the
configuration directory. If the WINDIR environment variable is defined when
Windows starts, EDX points to the value associated with WINDIR regardless of
whether it specifies the actual directory where SYSTEM.INI is found.
 
Comments
 
The string returned by this service always ends with a backslash (\).
 
Uses
 
EDX, Flags
 
                                      ♦