How to use the NTTerminateProcess Function windows ?

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!
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
Topic archived. No new replies allowed.