Exemplo n.º 1
0
 public string GetVendorName()
 {
     if (ProcessorInformation.CanReadCPUID() > 0)
     {
         uint[] raw = ProcessorInformation.CPUID(CPUIDOperation.GetVendorID);
         uint   ebx = raw[1];
         uint   ecx = raw[2];
         uint   edx = raw[3];
         //A little more inefficient but a lot clearer
         return(ConvertIntegerToString(ebx) + ConvertIntegerToString(edx) + ConvertIntegerToString(ecx));
     }
     else
     {
         return("\0");
     }
 }
Exemplo n.º 2
0
 public string GetBrandName()
 {
     if (ProcessorInformation.CanReadCPUID() > 0)
     {
         uint[] raw = ProcessorInformation.CPUID(CPUIDOperation.GetProcessorBrand);
         return(ConvertIntegerToString(raw[0]) +
                ConvertIntegerToString(raw[1]) +
                ConvertIntegerToString(raw[2]) +
                ConvertIntegerToString(raw[3]) +
                ConvertIntegerToString(raw[4]) +
                ConvertIntegerToString(raw[5]) +
                ConvertIntegerToString(raw[6]) +
                ConvertIntegerToString(raw[8]) +
                ConvertIntegerToString(raw[9]) +
                ConvertIntegerToString(raw[10]) +
                ConvertIntegerToString(raw[11]));
     }
     else
     {
         return("\0");
     }
 }