Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1070
  • Last Modified:

How to read BIO information programmatically

I need to access some of the BIOS settings during our software install. The kind of information I need to access includes:

a) Whether USB 2.0 is enabled or not
b) Whether Parallel ATA is enabled or not

Is there a way to programmatically access this kind of information from BIOS memory. I need to write this in C++ or C on Windows XP.

Thanks.
0
swsbuyer
Asked:
swsbuyer
  • 2
2 Solutions
 
leonjsCommented:
I am pretty sure you can pull all that information from a WMI script.

Check out this link

http://msdn.microsoft.com/en-us/library/aa394077.aspx

0
 
leonjsCommented:
Here is a second link referencing ways to pull that information using C++ and WMI

http://msdn.microsoft.com/en-us/library/aa394558(VS.85).aspx
Might not be exactly what your looking for but hopefully provide you with a lead.
good luck
0
 
swsbuyerAuthor Commented:
Not all settings in BIOS can be read using the BIOS structure in Windows. However, the BIOS information maps to something or other in WMI classes. A list of classes in WMI can be found here:

http://www.it-visions.de/scripting/WMIReferenz.asp?C_Klassentypen=4&C_Suchwort=ata&C_SubmitSearch=Search

An excellent way to extract the WMI information is by using the "wmic" utility:

wmic path <WMI class name>
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now