R.Wieser
2020-03-29 08:23:35 UTC
Hello all,
I'm starting "list.exe"* contained in the below 2003 SDK
http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe
using CreateProcessA. Afterwards (ofcourse) close the thread and process
handles (way before the started program exits)
*Which uses "CreateConsoleScreenBuffer" and family
The thing is that when I start the "list.exe" program* this way it does not
exit cleanly.
It is as if the cursor gets updated, but the screens contents do not - not
directly anyway: I can type a console command (like "dir") (no characters
visible but the cursor moves) and see the output. After doing that twice
the screen seems to return to normal though.
I've tried to fill the "StartupInfo" record with data (using
"GetStartupInfoA") before calling "CreateProcesA", but that didn't seem to
make a difference.
Question: Does anyone have an idea why this difference occurs ? What did
I forget to do ?
Remark: The same approach as worked fine for other programs, just not this,
"list.exe" one.
Regards,
Rudy Wieser
I'm starting "list.exe"* contained in the below 2003 SDK
http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe
using CreateProcessA. Afterwards (ofcourse) close the thread and process
handles (way before the started program exits)
*Which uses "CreateConsoleScreenBuffer" and family
The thing is that when I start the "list.exe" program* this way it does not
exit cleanly.
It is as if the cursor gets updated, but the screens contents do not - not
directly anyway: I can type a console command (like "dir") (no characters
visible but the cursor moves) and see the output. After doing that twice
the screen seems to return to normal though.
I've tried to fill the "StartupInfo" record with data (using
"GetStartupInfoA") before calling "CreateProcesA", but that didn't seem to
make a difference.
Question: Does anyone have an idea why this difference occurs ? What did
I forget to do ?
Remark: The same approach as worked fine for other programs, just not this,
"list.exe" one.
Regards,
Rudy Wieser