📜  c# get hwid - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:12.982000             🧑  作者: Mango

代码示例1
var mbs = new ManagementObjectSearcher("Select ProcessorId From Win32_processor");
ManagementObjectCollection mbsList = mbs.Get();
string id = "";
foreach (ManagementObject mo in mbsList)
{
    id = mo["ProcessorId"].ToString();
    break;
}