Click to See Complete Forum and Search --> : How to end process tree?


lechoo
March 9th, 2005, 12:01 PM
I'm looking for something like "End process tree" form task manager.
I start an application using ShellExecuteEx. I have its handle and TerminateProcess works just fine, however aplication starts its own processes which remain. Sending WM_QUIT message doesn't work at all. Question is how can I kill whole process tree?
I don't care about proper shutwown, so even "brute force" metods will do fine.

thanks for any help

gradiov
March 9th, 2005, 03:04 PM
on win2000/XP look into the JOB object, on 95/98/ME hijack create process API to track creation of the child processes

lechoo
March 10th, 2005, 12:37 PM
Works like a charm.
Thanks a lot.