@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Close a process with its handle : Adapted from : https://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%20Functions%2FNT%20Objects%2FProcess%2FNtTerminateProcess.html !!!!C# Signature: [DllImport("ntdll.dll", SetLastError=true)] static extern uint NtTerminateProcess(IntPtr hProcess, int errorStatus); !!!!VB Signature: <DllImport("ntdll.dll")> Public Shared Function NtTerminateProcess(ByVal hfandle As IntPtr, ByVal ErrorStatus As Integer) As UInteger End Function !!!!Boo Signature: [DllImport("ntdll.dll", SetLastError : true)] def NtTerminateProcess(ProcessHandle as IntPtr, ExitStatus as UInt32) as UInt32: pass !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: If not specified, caller process is killed. !!!!Tips & Tricks: Please add some! !!!!Sample Code: Process process = Process.GetProcessesByName("notepad").First(); IntPtr processHandle = process.Handle; NtTerminateProcess(processHandle, 0); Documentation: NtTerminateProcess@msdn on MSDN
Edit ntdll.NtTerminate...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.