using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace WinAPI { /// /// /// public static class Kernel32 { /// /// 结束进程 /// /// /// /// [DllImport("kernel32")] public static extern long TerminateProcess(int handle, int exitCode); } }