-2

we are working on something in that requires BIOS information, i know that these information is available in HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System registry setting. But i need to do this in C++. is there any API available for this?? i dont want to read from the system registry due to some limitation on client system. Is there any other way to do this??

Sandeep Sharma
  • 109
  • 1
  • 10
  • 9
    [How to read a value from the Windows registry](http://stackoverflow.com/questions/34065/how-to-read-a-value-from-the-windows-registry) – David Ranieri Nov 15 '16 at 04:20

1 Answers1

1

If you already know that the values are stored in a registry hive, then you could use CRegKey to read the values. This is just an ATL wrapper around Windows registry manipulation APIs.

If you want to use a Windows API instead, there's RegQueryValueEx.

Keine has also given you an excellent link in a comment, which discusses several things and also has a link that's detailing the 32/64 bit registry gotchas.

Vada Poché
  • 763
  • 5
  • 16
  • thanks for your response. but i don't want to use system registry is there any other way available to get this info. thanks in advance.. – Sandeep Sharma Nov 15 '16 at 04:58
  • Have you had a look at the Win32_BIOS class? https://msdn.microsoft.com/en-us/library/aa394077(v=vs.85).aspx – Vada Poché Nov 15 '16 at 05:08