You are currently offline, waiting for your internet to reconnect

How To Activate a Full Screen MS-DOS or Console Application

This article has been archived. It is offered "as is" and will no longer be updated.
A full screen MS-DOS application or a full screen Win32 console applicationcan be activated from a Win32 application by using the Platform SDK's APIsSetForegroundWindow() and ShowWindow().
More information
Assuming the caption of the MS-DOS application or the Win32 consoleapplication is Test.exe, the following sample code activates the minimizedMS-DOS or Win32 console application:
   HWND hwndConsole = NULL;   hwndConsole = FindWindow(NULL, "Test.exe");   if(NULL != hwndConsole)   {      SetForegroundWindow(hwndConsole);      ShowWindow(hwndConsole, SW_MAXIMIZE);   }				

Article ID: 196103 - Last Review: 12/05/2015 09:48:04 - Revision: 5.0

  • kbnosurvey kbarchive kbhowto kbwndw kbwndwprop KB196103