Sequence number of CPU

xiaoxiao2021-03-06  120

You can take the serial number of the CPU.

String cpuinfo = ""; // CPU serial number

ManagementClass Cimobject = New

ManagementClass ("Win32_Processor");

ManagementObjectCollection moc = CimObject.getinstances ();

Foreach (ManagementObject Mo in MoC)

{

CPUINFO = mo.properties ["processorid"]. value.tostring ();

Response.write (cpuinfo);

}

转载请注明原文地址:https://www.9cbs.com/read-101163.html

New Post(0)