Helmut Giese
2023-11-09 21:24:17 UTC
Hello out there,
I have a program that refuses to be handled by a pipe:
- either it starts as a pure GUI app or
- it opens a console of its own and accepts input only from there.
So I thought of using TWAPI to feeding it my input but all the
functions in the 'Console' section seem to handle the console of the
calling process - at least none of the functions there take a HANDLE
or HWND or similar parameter.
The TWAPI documentation doesn't offer anything (obvious) how to handle
this situation hence my question here: Is there a way to send input to
(and maybe even to get output from) the console of a different
process?
Any help will be greatly appreciated
Helmut
I have a program that refuses to be handled by a pipe:
- either it starts as a pure GUI app or
- it opens a console of its own and accepts input only from there.
So I thought of using TWAPI to feeding it my input but all the
functions in the 'Console' section seem to handle the console of the
calling process - at least none of the functions there take a HANDLE
or HWND or similar parameter.
The TWAPI documentation doesn't offer anything (obvious) how to handle
this situation hence my question here: Is there a way to send input to
(and maybe even to get output from) the console of a different
process?
Any help will be greatly appreciated
Helmut