Inheriting Handles in Threads

I have a parent process which creates a Child Process through CreateProcess. I fork a new thread in the parent Process and in

the new thread i wait for the completion of the child process (i use WaitForSingleObject on the child process handle). In order

to use the child Process Handle in the new thread i pass the Child Process Handle as a parameter to the thread function. This

gives an assertion failure.Basically i want to inherit handles in the parent process to the child threads. Is passing (handles)

through parameters not a valid approach.

Please HELP ME!!




Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!