Automatically Closing QuickWin Exec Window at CompletionID: Q93661
|
/*
* Compiler options required: None
*/
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
void main()
{
int hWnd;
int nChar;
printf("Generic");
nChar = getchar();
if (toupper(nChar) == (int)'C')
{
// GetActiveWindow() works only when
// the QuickWin Exec window is active
hWnd = GetActiveWindow();
// Other option: Use FindWindow(). "TEST" is the default
// QuickWin Exec application name, which is used as the
// window title.
// hWnd = FindWindow(NULL, "TEST");
DestroyWindow(hWnd) ;
}
exit(1);
}
Additional query words: kbinf 1.00 1.50 1.51 1.52
Keywords : kb16bitonly
Version :
Platform :
Issue type :
Last Reviewed: July 21, 1999