摘要: //截取全屏图象 private void btnFullScreen_Click(object sender, EventArgs e) { //创建图象,保存将来截取的图象 Bitmap image = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.Pri... 阅读全文
posted @ 2015-07-25 17:25 学习札记 阅读(691) 评论(0) 推荐(0) 编辑
摘要: WMI方式 using System; using System.Management; using System.Text.RegularExpressions; using System.Collections.Generic; namespace Splash.IO.PORTS { /// /// 即插即用设备信息结构 /// public struc... 阅读全文
posted @ 2015-07-25 02:06 学习札记 阅读(9317) 评论(1) 推荐(2) 编辑
摘要: using System.Net.NetworkInformation; /// /// 获取第一个可用的端口号 /// /// public static int GetFirstAvailablePort() { int MAX_PORT = 6000; //系统tcp/udp端口数最大是65535 int BEGIN_PORT = 5000;//... 阅读全文
posted @ 2015-07-25 02:00 学习札记 阅读(2033) 评论(0) 推荐(0) 编辑