I want to start hidden MS-DOS app (not PB/CC module, where it possible to change byte 221).
Under 9x - question is solved by generating the pif-file.
But what to do under NT ?
During execution console window is not visible, because PB dialog has TOPMOST style and covers whole screen.
But when Shell starts, during short period appears black screen.
I tried AllocConsole. Black screen disappeared, but it's not possible to close console window by usual way (I mean
hConsole = GetStdHandle(%STD_OUTPUT_HANDLE) ...
CloseHandle hConsole: FreeConsole).
I think, MS-DOS changes owner of window.
Any ideas ?
Under 9x - question is solved by generating the pif-file.
But what to do under NT ?
During execution console window is not visible, because PB dialog has TOPMOST style and covers whole screen.
But when Shell starts, during short period appears black screen.
I tried AllocConsole. Black screen disappeared, but it's not possible to close console window by usual way (I mean
hConsole = GetStdHandle(%STD_OUTPUT_HANDLE) ...
CloseHandle hConsole: FreeConsole).
I think, MS-DOS changes owner of window.
Any ideas ?
Comment