paul
Mon May 10 13:32:37 CDT 2004
Thanks Will - I think that is what I am looking for. I thought some thing
was introduced in Windows 2000, but I couldn't recall what was.
Paul
"William DePalo [MVP VC++]" <willd.no.spam@mvps.org> wrote in message
news:eRvvJPrNEHA.620@TK2MSFTNGP10.phx.gbl...
> "paul" <paullee2000@hotmail.com> wrote in message
> news:e2rNFqpNEHA.160@TK2MSFTNGP10.phx.gbl...
> > In my program, I use the function CreateProcessA() and
> WaitForSingleObject()
> > to create a child process and wait it to finish. How do I keep track if
> the
> > child process has launched another process? Is there a process Group ID
> > (like in UNIX) I can use?
>
> Well, while there isn't any _exact_ mapping of 'nix group and Win32 job,
you
> might be able to cook up something.
>
> The QueryInformationJobObject() will let you query a job for its
constituent
> process IDs while CreateJobObject() and AssignProcessToJobObject() will
give
> you something like a group. Take a look at this link for a good overview:
>
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/job_objects.asp
>
> Regards,
> Will
>
>