The information in this article applies to:
SUMMARYWhen launching 16-bit MS-DOS applications or batch files on Windows 95 from a 32-bit process using the CreateProcess() Win32 API, a changed or modified environment will not be inherited if creation of the MS-DOS application requires a new console window. To cause the environment to be successfully inherited, the Win32 process can launch a 32-bit console application which will inherit the Win32 parent's current or specified environment variables. The 32-bit console application can then launch the 16-bit MS-DOS application or batch file, causing the MS-DOS application to inherit the Win32 parent's console window and its environment variables. MORE INFORMATION
The lpEnvironment parameter passed to CreateProcess()API allows programmers
to specify an environment string for the process to be launched. If no
environment is specified, the child process will inherit the parent's
current environment variables.
Additional query words: win95 w95 pif oldapps dosapps dos
Keywords : kbprg kbConsole kbKernBase kbGrpKernBase |
Last Reviewed: January 14, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |