Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows VC++ Get Machine Model Name

Can anyone Please tell me how to get Model name of Windows Machine. I am new to Windows VC++.

For Example i have an IBM ThinkCenter M50 running on Windows. Here the Model name is "Think Center M50". I want to get this from the System using some API.

Thanks in Advance, Shashi Kiran G M

like image 511
gmsk19 Avatar asked Apr 26 '26 10:04

gmsk19


1 Answers

Alternatively, you could use the registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SystemInformation

also: HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS (Win7 or later only)

The SystemManufacturer and SystemProductName entries should do it. Saves using WMI, which i try to avoid at all costs for performance reasons.

like image 199
domskey Avatar answered May 03 '26 13:05

domskey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!