guyw77
asked on
kill process tree
Hello,
In my program I use CreateProcess() to create new process A.
Process A also create processes of its own.
Given an handle to process A, I want to terminate him and all of his spwaned processes.
I tried to create process A in new console, but it won't work.
Can someone please help me?
Thanks, Guy.
In my program I use CreateProcess() to create new process A.
Process A also create processes of its own.
Given an handle to process A, I want to terminate him and all of his spwaned processes.
I tried to create process A in new console, but it won't work.
Can someone please help me?
Thanks, Guy.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Force Accepted
SpideyMod
Community Support Moderator @Experts Exchange
SpideyMod
Community Support Moderator @Experts Exchange
ASKER
I use win2K, and the processes are console apllications.
It will also be great help if you can tell me how to kill one process, given his pid /handle (I tried TerminateProcess, but I got an error, that I don't have permision to kill (although it is a process I create).
Thanks, Guy