C#获取控制台句柄的方法
1.创建类User32API.cs,代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using System.Collections;namespace XXX{ class User32API { private static Hashtable proce...