Getting Boot Priority List from BIOS in Windows

Hi,
I Have an requirement to display Boot Priority list in my tool.

When we see in the BIOS options(using F2), there we will have primary boot device is HD, Secondary is ROM etc… I need to display this list.

How to get the Boot priority list in windows.??
do we have any API’s in C/C# to read the same.??
Could you please help me with this.??

Thank you,
Jayaprakash

AFAIK that list is not exposed by the bios in any meaningful way you can consume in windows. What problem are you trying to solve?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Sunday, October 28, 2012 11:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting Boot Priority List from BIOS in Windows

Hi,
I Have an requirement to display Boot Priority list in my tool.

When we see in the BIOS options(using F2), there we will have primary boot device is HD, Secondary is ROM etc… I need to display this list.

How to get the Boot priority list in windows.??
do we have any API’s in C/C# to read the same.??
Could you please help me with this.??

Thank you,
Jayaprakash


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hi,

As I mentioned we have a tool which we use for windows debugging…
We do display many things like memory, processor info, OS information etc.

It is the requirement that i need to display the Boot priority list also.
Pls let me know if we have any way to get the same in windows.?

Thank you
Jayaprakash

>

Hi,
I Have an requirement to display Boot Priority list in my tool.

When we see in the BIOS options(using F2), there we will have primary boot
device is HD, Secondary is ROM etc… I need to display this list.

How to get the Boot priority list in windows.??
do we have any API’s in C/C# to read the same.??
Could you please help me with this.??

Your BIOS may export this via SMBIOS/DMI/ which may be accessible via WMI. This guy has a blog post about getting the boot order from HP http://www.hofferle.com/bios-management-with-powershell/ (just tried it on my HP 6730b laptop and it told me what I wanted to know).

I doubt you’ll be able to come up with a way to do it without fine tuning it for every possible board unless EFI has standardised it and you only care about new boards using EFI.

James