Link to home
Start Free TrialLog in
Avatar of guyw77
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.
Avatar of guyw77
guyw77

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
ASKER CERTIFIED SOLUTION
Avatar of RoboRoger
RoboRoger
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange