取CPU的序列号的代码(C#)

string cpuInfo = "";//cpu序列号
ManagementClass cimobject = new
ManagementClass("Win32_Processor");
ManagementObjectCollection moc = cimobject.GetInstances();
foreach(ManagementObject mo in moc)
{
cpuInfo = mo.Properties["ProcessorId"].Value.ToString();
Response.Write(cpuInfo);
阅读更多

没有更多推荐了,返回首页