escap3
February 5th, 2010, 11:22 AM
I just want to use ZwTerminateProcess() native function through my C# Application.
I've been written this part of code :
[DllImport("ntdll.dll")]
public static extern NtStatus ZwTerminateProcess(
[In] [Optional] IntPtr ProcessHandle,
[In] NtStatus ExitStatus
);
but the compiler issues some error code :
Error 2 The type or namespace name 'NtStatus' could not be found (are you missing a using directive or an assembly reference?)
how Can I import this function ?
I've been written this part of code :
[DllImport("ntdll.dll")]
public static extern NtStatus ZwTerminateProcess(
[In] [Optional] IntPtr ProcessHandle,
[In] NtStatus ExitStatus
);
but the compiler issues some error code :
Error 2 The type or namespace name 'NtStatus' could not be found (are you missing a using directive or an assembly reference?)
how Can I import this function ?