include vmm.inc
VMMCall Get_Config_Directory
mov [WinDir], edx ; address of the directory name
Gets the name of the directory containing the Windows configuration files, such as SYSTEM.INI. For Windows 95, this service is available following initialization. Uses EDX, Flags.
If the WINDIR environment variable is defined when Windows starts, the string associated with WINDIR is returned, regardless of whether it specifies the actual directory where SYSTEM.INI is located.