BCD in kernel

Hi,

Is it possible to add custom option in bcd store and read them from a driver?

Thanks,
Anatoly.

Why do you want to do this?

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Wednesday, May 11, 2011 11:22 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] BCD in kernel

Hi,

Is it possible to add custom option in bcd store and read them from a
driver?

Thanks,
Anatoly.


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

If you mean, can you get access to the command line parameters that are part of the boot config, then the answer is yes - they’re in the registry at \Registry\Machine\System\CurrentControlSet\Control in a REG_SZ key named SystemStartOptions

find beter way how to communicate with your driver, bcdstore isn’t ideal
there’s undocumented ZwSetBootOptions/ZwQueryBootOptions fncs, but input
structure isn’t known…

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Wednesday, May 11, 2011 5:22 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] BCD in kernel

Hi,

Is it possible to add custom option in bcd store and read them from a
driver?

Thanks,
Anatoly.


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

Petr, Steve

Many thanks…

Hi again,

I checked the zwquerybootoptions. It returns 0xc0000002.
And the registry SystemStartOptions does not contain any custom options from the store.

I have several entries in bcd store that were copied from the original. The only difference is debug settings.
Where (in registry) can I find the identifier of curtent bcd entry?

Thanks…