Anzahl der Prozessoren ermitteln
Hallo,
hiermit kann man die Anzahl der Processoren im Computer herrausfinden. Auch wenn die meisten schon wissen das da nur einer oder zwei drin sind. ;-)
Delphi-Quellcode:
Ein hinweis noch, das ganze macht erst ab >= Win NT Sinn, da Win 9x Multiprozessoren nicht unterstützt!
procedure TForm1.Button1Click(Sender: TObject);
function GetCPUCount: DWord; var SysInfo: TSystemInfo; begin GetSystemInfo(SysInfo); Result := SysInfo.dwNumberOfProcessors; end; begin ShowMessage(IntToStr(GetCPUCount)); end; Grüsse, Daniel :hi: [edit=Chakotay1308]Klassifizierung. Mfg, Chakotay1308[/edit] |
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:22 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz