24 lines
537 B
C#
24 lines
537 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
namespace WinAPI
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static class Kernel32
|
|
{
|
|
/// <summary>
|
|
/// 结束进程
|
|
/// </summary>
|
|
/// <param name="handle"></param>
|
|
/// <param name="exitCode"></param>
|
|
/// <returns></returns>
|
|
[DllImport("kernel32")]
|
|
public static extern long TerminateProcess(int handle, int exitCode);
|
|
}
|
|
}
|