How to use the NTTerminateProcess Function windows ?

Jul 12, 2013 at 5:43pm
closed account (3hMz8vqX)
Hi Im new to Cplus plus.com and this is my first question,
How will you use the NtTerminateProcess Function ?
I use codeblocks 12.11 can you give a code snippet on how to do it!
Thanks in advance!
Jul 12, 2013 at 6:21pm
Hi arvind333,
I guess You want rather to use TerminateProcess.

Genarally, ZwXXX and NtXXX (with some exceptions) are kernel functions (designed to use from kernel drivers). Basing on fact you use codeblocks I guess you're not writing a driver.

So:

ZwTerminateProcess is kernel mode function.
TerminateProcess is a user mode function.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms686714%28v=vs.85%29.aspx



Last edited on Jul 12, 2013 at 6:24pm
Topic archived. No new replies allowed.