How to get hardware information (for example cpuId, biosId, diskId, baseId and videoId) in c++?
Can anyone give me an example visual studio project for this?
To open up System Information, hit Windows+R, type “msinfo32” into the “Open” field, and then hit Enter. The “System Summary” page you open up to already provides a lot more information than we saw in the Settings app.
Type info in the search box on your taskbar, and then select System Information.
There are very different ways to get a disk id (serial number? volume id?) or a CPU ID or ... . I think you want to build a fingerprint of the computer. The most comfortable way is to use Windows Management Instrumentation (WMI) and access the DMI . See MSDN for a start. See MSDN here for a hint how to get the mainboard serial number as an example.
GetSystemInfo will get you started with the CPU information. Each subsystem generally has different query functions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With