t;</returns>
public string GetCpuID()
{
string result = \"\";
ManagementClass mClass = new ManagementClass(\"Win32_Processor\");
ManagementObjectCollection moCollection = mClass.GetInstances();
foreach (ManagementObject mObject in moCollection)
{
result += mObject[\"ProcessorId\"].ToString() + \" \";
}
return result;
}
/// <summary>
/// 查询硬盘编号
/// </summary>
/// <returns></returns>
public string GetMainHardDiskId()
{
string result = \"\";
ManagementObjectSearcher searcher = new ManagementObjectSearcher(\"SELECT * FROM Win32_PhysicalMedia\");
ManagementObjectCollection moCollection = searcher.Get();
foreach (ManagementObject mObject in moCollection)
{
result += mObject[\"SerialNumber\"].ToString() + \" \";
}
return result;
}
/// <summary>
/// 主板编号
/// </summary>
/// <returns></returns>
&nbs