摘要:
//截取全屏图象 private void btnFullScreen_Click(object sender, EventArgs e) { //创建图象,保存将来截取的图象 Bitmap image = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.Pri... 阅读全文
摘要:
WMI方式 using System; using System.Management; using System.Text.RegularExpressions; using System.Collections.Generic; namespace Splash.IO.PORTS { /// /// 即插即用设备信息结构 /// public struc... 阅读全文
摘要:
using System.Net.NetworkInformation; /// /// 获取第一个可用的端口号 /// /// public static int GetFirstAvailablePort() { int MAX_PORT = 6000; //系统tcp/udp端口数最大是65535 int BEGIN_PORT = 5000;//... 阅读全文