Microsoft KB Archive/196103

{|
 * width="100%"|

HOWTO: Activate a Full Screen MS-DOS or Console Application

 * }

Q196103

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * the operating system: Microsoft Windows NT
 * the operating system: Microsoft Windows 95
 * the operating system: Microsoft Windows 98

-

SUMMARY
A full screen MS-DOS application or a full screen Win32 console application can be activated from a Win32 application by using the Platform SDK's APIs SetForegroundWindow and ShowWindow.

MORE INFORMATION
Assuming the caption of the MS-DOS application or the Win32 console application is Test.exe, the following sample code activates the minimized MS-DOS or Win32 console application:

  HWND hwndConsole = NULL; hwndConsole = FindWindow(NULL, "Test.exe"); if(NULL != hwndConsole) {     SetForegroundWindow(hwndConsole); ShowWindow(hwndConsole, SW_MAXIMIZE); } Additional query words: SetFocus

Keywords : kbOSWinNT kbSDKPlatform kbOSWin95 kbOSWin98 kbWndw kbWndwProp

Issue type : kbhowto

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch