Hardware Information/Hardverinformáció (Multilang) lazarus / 23-Operating Systems ---------------------------------------------------------------------- TheProgrammer · 2011-08-22 17:30 System independent query as possible? Rendszerfüggetlen lekérdezés lehetséges? (Win XP, Win 7, Linux...) Example/Példa: This system is used: Ez a rendszer ezt használja: Intel, 64bit, 6MB cache, 6 Core, 6 Thread, 3,2 GHz... or Intel, 32bit, 1MB cache, 1 core, 2 Thread, 3 GHz <-This my processor/Ez az én processzorom or Amd, 64bit, 6MB cache, 3 core, (0 Thread), 2,8 GHz Only Windows/Windowsban: http://lazarus.freepascal.org/index.php/topic,14291.0.html ---------------------------------------------------------------------- Shebuka · 2011-08-23 07:40 and the question is? ---------------------------------------------------------------------- TheProgrammer · 2011-08-23 08:58 How can i get hardware information in Linux or Windows XP? I can't get number of core, number of thread and size of L3 cache in Windows XP. Hogyan tudom lekérdezni a hardverinformációkat Windows XPn vagy Linuxon? Én nem tudom lekérdezni a magok, szálak darabszámát vagy L3-as gyorsítótárak méretét Windows XP-n. ---------------------------------------------------------------------- Shebuka · 2011-08-23 09:11 Quote from: TheProgrammer on August 23, 2011, 10:58:27 amHow can i get hardware information in Linux or Windows XP? I can't get number of core, number of thread and size of L3 cache in Windows XP. Hogyan tudom lekérdezni a hardverinformációkat Windows XPn vagy Linuxon? Én nem tudom lekérdezni a magok, szálak darabszámát vagy L3-as gyorsítótárak méretét Windows XP-n. Ah, ok, can't answer you for Linux and WinXP, but here's a tip for Mac OS X: http://www.lazarus.freepascal.org/index.php/topic,13109.msg71741.html# msg71741 ---------------------------------------------------------------------- TheProgrammer · 2011-08-23 09:19 TProcess can query processor information in Mac OS X? TProcess letudja kérdezni a processzor információit Mac OS X-ben? Other/Egyéb: if WinXP then... end if Win7 then... end if Linux then... [..] How can it be done? Hogyan tudom ezt megcsinálni? ---------------------------------------------------------------------- Peter_Vadasz · 2011-08-23 09:55 Quote from: TheProgrammer on August 23, 2011, 11:19:07 amTProcess can query processor information in Mac OS X? TProcess letudja kérdezni a processzor információit Mac OS X-ben? Other/Egyéb: if WinXP then... end if Win7 then... end if Linux then... [..] How can it be done? Hogyan tudom ezt megcsinálni? The TProcess can't query any information about your processor. It can run a process or a "program". On Windows platform, try to use the registry, I think the windows store every settings and information here. On Linux, there are lot of programs which are runnable with TProcess, and these programs output give you some information. A TProcess nem tud semmilyen információt lekérdezni a processzorodról egyik operációs rendszeren sem. Csupán egy külső programot, vagy processzt képes futtatni és "felügyelni". Windows-on próbálj a regisztrációs adatbázisból kinyerni információkat, szerintem a windows mindent itt tárol. Linuxon egy csomó parancssoros program létezik amelyeket futtathatsz a TProcess-el és amelyek kimenete elegendő információt adhat neked. Egyébként megpróbálhatod használni a Freepascal és a Lazarus dokumentációit. pl a BaseUnix unit linux alatt segítségedre lehet pár dologban. ---------------------------------------------------------------------- TheProgrammer · 2011-08-23 10:18 I can that TProcess can connect to other program... WMI is good, but Win XP is unable to perform some query: http://msdn.microsoft.com/en-us/library/aa394373%28v=vs.85%29.aspx Windows registry stored Minimal information about hardware information . May have different storage places? (between Win XP and Win 7. Azt tudtam, hogy a TProcess mire való, csak nehéz még nekem angolul megfogalmazni... WMI tökéletesen működik Win7-en csak XP-n nem működik pár dolog amit itt jeleznek is: http://msdn.microsoft.com/en-us/library/aa394373%28v=vs.85%29.aspx A Windows registry minimális információt tárol a Processzor vagy más hardver adatairól. Abban sem vagyok biztos hogy ugyanazon a helyen van-e az információ XP-n is. (Én Win7-et használok.)