How to use the NTTerminateProcess Function windows ?

closed account (3hMz8vqX)
Hi Im new to Cplus 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.


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

Last edited on
Topic archived. No new replies allowed.