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)
http://www.lmgtfy.com/?q=how+to+use+terminatejobobject+api
Let me give you a leg into figuring this out. According to MSDN http://msdn.microsoft.com/en-us/library/windows/desktop/ms686709(v=vs.85).aspx
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.