CPU的序列号

可以取CPU的序列号。
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);
}
posted @ 2004-10-25 18:57  leonardleonard  阅读(190)  评论(0编辑  收藏  举报