How to kill a process using TerminateJobObject() API ???

closed account (3hMz8vqX)
Hi all,
Can anyone give an example code to show how to kill a process using the TerminateJobObject API ???

Thankyou everyone in advance!!!
closed account (Dy7SLyTq)
Let me give you a leg into figuring this out. According to MSDN
One of the parameters for TerminateJobObject is a HANDLE which is used to locate the job object...
Now ask yourself this question. Do you have the job object handle somewhere in your code? Well do yah punk?
Topic archived. No new replies allowed.