How do I redirect child process I/O in a Win32 application? MSDN only covers console-mode redirection.
How do I redirect child process I/O in a Win32 application? MSDN only covers console-mode redirection.
As far as I know, Stdin and Stdout refer to handles of the console.
I need the input(keypresses, mouseclicks, etc.) and output (to a DC, etc.) redirected to the parent.
>> I need the input(keypresses, mouseclicks, etc.) <<
Look up windows hooks.
>> and output (to a DC, etc.) redirected to the parent. <<
Depending on what you need you can blit the windows or hook the GDI functions (lookup api hooking).
This is a fairly complicated subject and I'm not sure you're are going to get all the required info on this forum. You could look up the source code for one of the VNCs (TightVNC maybe). You may get better help if you elaborate on what you need to do. Are you trying to emulate VNC/Remote Desktop or something different?
Note: My intermediate posts above have been deleted.
From what I read on MSDN, it seems that the child process would have to call a hooking function. For what I want to do, I do not wish to modify the child process.
I just realized that I do not need what I said I need. What I really need is a way to read and manipulate data in the child process.
I realize now that debugging is the solution to my problem.