[SOLVED] How to find out the hardware parameters of a PC? lazarus / 23-Operating Systems ---------------------------------------------------------------------- Wargan · 2017-05-02 04:47 Hello! What code should I use to find out the following PC settings? The amount of RAMVideo memory: vendor/sizeWindows usernameSize of the hard driveIs the installation disk a hard drive or a USB flash drive? p.s. I'm programming under Windows. ---------------------------------------------------------------------- balazsszekely · 2017-05-02 05:39 Through WMI? Like this: http://stackoverflow.com/questions/6383598/delphi-how-to-get-total- disk-space-of-windows-drive . ---------------------------------------------------------------------- Thaddy · 2017-05-02 09:32 Hm. Directly through the registry, maybe? HKEY_LOCAL_MACHINE\HARDWARE\  and then DESCRIPTION\ and sub keys etc. Easy. ---------------------------------------------------------------------- ahiggins · 2017-05-02 09:56 You could try WMI Delphi Code Creator, I've used it in the past to get system serial numbers/asset details. https://theroadtodelphi.com/wmi-delphi-code-creator/ ---------------------------------------------------------------------- Thaddy · 2017-05-02 10:00 Quote from: ahiggins on May 02, 2017, 11:56:15 amYou could try WMI Delphi Code Creator, I've used it in the past to get system serial numbers/asset details. https://theroadtodelphi.com/wmi-delphi-code-creator/ WMI will work, as i wrote before, but direct registry access is much quicker and generates less code. ---------------------------------------------------------------------- Wargan · 2017-05-02 10:05 Quote from: ahiggins on May 02, 2017, 11:56:15 amhttps://theroadtodelphi.com/wmi-delphi-code-creator/ Site doesn't work ---------------------------------------------------------------------- ahiggins · 2017-05-02 10:10 sorry, did not check the download link, you may have to Google WMI Delphi Code Creator download or try CNET etc ---------------------------------------------------------------------- Thaddy · 2017-05-02 10:13 The site DOES work. Use ABP to skip all the sh*t in between. ---------------------------------------------------------------------- taazz · 2017-05-02 11:06 projects repo is at https://github.com/RRUZ/wmi-delphi-code-creator it has download links for the binaries as well. ---------------------------------------------------------------------- Wargan · 2017-05-02 11:19 Many thanks to all! I downloaded the WMI Delphi Code Generator from here. After installation in the settings you can specify generation of code for FreePascal.