المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Process Termination waiting for Event - Win32



C++ Programming
11-12-2009, 10:10 AM
I have a Win32 Service (written in C) that does a CreateProcess(). After that it waits for its own termination (the services').

I would like to monitor the subprocess such that the service gets notified when the subprocess terminates (for whatever reason).

I have an idea of doing this with events and WaitForMultipleObjects(), but somehow I'm missing the idea where to start.

Should the service create an event? Or should the subprocess do that? And how would that be notified to the service process so that it can wait for that event?

Help very much appreciated.

--
Christoph