Einzelnen Beitrag anzeigen

Razor
(Gast)

n/a Beiträge
 
#24

Re: openlibsys.org Open source driver

  Alt 6. Mai 2008, 20:33
I did it for AMD core reading...

However it needs testing so people with AMD 64 K7 cpus.

People please test!

Needs translation!

Delphi-Quellcode:
void ReadTemp(HWND hWnd)
{
   DWORD eax, edx;

   RdmsrEx(0x19C, &eax, &edx, 1);

   eax &= 0x007F0000;
   eax = eax >> 16;

   SetDlgItemInt(hWnd, IDC_STATIC1, -(int)eax, TRUE);

   RdmsrEx(0x19C, &eax, &edx, 1 << 1);

   eax &= 0x007F0000;
   eax = eax >> 16;

   SetDlgItemInt(hWnd, IDC_STATIC2, -(int)eax, TRUE);

   if(numCPU == 4){
      RdmsrEx(0x19C, &eax, &edx, 1 << 2);

      eax &= 0x007F0000;
      eax = eax >> 16;

      SetDlgItemInt(hWnd, IDC_STATIC3, -(int)eax, TRUE);

      RdmsrEx(0x19C, &eax, &edx, 1 << 3);

      eax &= 0x007F0000;
      eax = eax >> 16;

      SetDlgItemInt(hWnd, IDC_STATIC4, -(int)eax, TRUE);
   }

}
Angehängte Dateien
Dateityp: rar amd_ct_133.rar (208,4 KB, 42x aufgerufen)
  Mit Zitat antworten Zitat