Public Static String getcpuid ()
{
String cpuinfo = string.empty;
String temp = string.empty;
ManagementClass MC = New ManagementClass ("Win32_Processor");
ManagementObjectCollection moc = mc.getinstances ();
Foreach (ManagementObject Mo in MoC)
{
IF (cpuinfo == string.empty)
{
CPUINFO = mo.properties ["processorid"]. value.tostring ();
}
}
Return CPUInfo;
}