/// <summary>
/// 得到电脑CPU序列号
/// </summary>
public string GetComputerCPUSerialNo()
{
string cpuSerialNo = string.Empty;
System.Management.ManagementClass managementClass = new System.Management.ManagementClass("Win32_Processor");
System.Management.ManagementObjectCollection managementObjectCollection = managementClass.GetInstances();
foreach (System.Management.ManagementObject managementObject in managementObjectCollection)
{
cpuSerialNo = managementObject.Properties["ProcessorId"].Value.ToString();
break;
}
return cpuSerialNo;
}
/// <summary>
///