C中得到网卡号C源代码
C#中得到网卡号C#源代码 using System.Management; //get the MAC address ManagementClass mc=new ManagementClass("Win32_NetworkAdapterConfiguration"); ManagementObjectCollection moc=mc.GetInstances(); string[] MacAddress=new string[2]; int ii=0; foreach(ManagementObject mo in moc) { if((bool)mo["IPEnabl
用户评论