CreateProcess child communicating to parent

Started by tpekar, May 21, 2013, 09:28:57 PM

Previous topic - Next topic

tpekar

I am trying to use the _pipe() function to communicate back to the parent from the child process.  My question is how does the parent communicate the pipe handle to the child process?  If someone has a simple example showing how to communicate back and forth between the parent and the child that would be great!  Thanks in advance.

frankie

#1
The simplest way is to use memory communication through file mapping as in this sample
The same way is used by OutputDebugString as in my DebugReadser.
An example for pipes is here
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

TimoVJL

Here is simplified named pipe example to test.
Easier to google when some API names are seen.
Those who know about named pipes, please correct errors in example.
May the source be with you