sending to hConsoleInput for child process (Win32/C++)



Hi,
I want to send keystrokes to a child process' console. The main application
process provides the keystrokes, and the child console (running a
third-party app) consumes those keystrokes.

WriteConsoleInput seems to be the function I need
(http://msdn2.microsoft.com/en-us/library/ms687403(VS.85).aspx)

How can I get a handle to a child window's console input (hConsoleInput)?


.



Relevant Pages