1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
uses registry; procedure GetCPU(var name:string;var Mhz:integer); var reg:Tregistry; begin reg:=tregistry.Create; reg.RootKey:=HKEY_LOCAL_MACHINE; reg.OpenKey('HARDWARE\DESCRIPTION\System\CentralProcessor\0',false); name:=reg.ReadString('ProcessorNameString'); mhz:=reg.ReadInteger('~MHz'); reg.Free; end; |
Autor: AnoXic