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);
///
///
///
///
///
///
///
[DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(uint processAccess, bool bInheritHandle, int processId);
///
///
///
///
///
[DllImport("kernel32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool CloseHandle(IntPtr hObject);
}
}