Forum > Operating Systems

[SOLVED] How to find out the hardware parameters of a PC?

(1/2) > >>

Wargan:
Hello!

What code should I use to find out the following PC settings?

* The amount of RAM
* Video memory: vendor/size
* Windows username
* Size of the hard drive
* Is the installation disk a hard drive or a USB flash drive? :)
p.s. I'm programming under Windows.

balazsszekely:
Through WMI? Like this: http://stackoverflow.com/questions/6383598/delphi-how-to-get-total-disk-space-of-windows-drive .

Thaddy:
Hm. Directly through the registry, maybe? HKEY_LOCAL_MACHINE\HARDWARE\  and then DESCRIPTION\ and sub keys etc. Easy.

ahiggins:
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:

--- Quote from: ahiggins on May 02, 2017, 11:56:15 am ---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/

--- End quote ---
WMI will work, as i wrote before, but direct registry access is much quicker and generates less code.

Navigation

[0] Message Index

[#] Next page

Go to full version