How to identify /3GB switch?

Hi All,

How can I identify programatically that the operating system is booted with /3GB switch?

Thanks & Regards,
Amit.

There may be a better way - in particular one that does not involve parsing in the kernel - but one way is to look at the REG_SZ value:

\Registry\Machine\System\CurrentControlSet\Control:SystemStartOptions

It contains the switches/bcd settings in a space separated list. Based on looking at only one XP and one Server 2008 system, it appears that the later include the slash (/) in front of each option, the irony being that they aren’t used on Vista. In any case, if you go this route, you’ll have to take a better look at this.

Good luck,

mm

HKLM\SYSTEM\CurrentControlSet\Control\SystemStartOptions

Will have a /3GB there. Just read the registry.

Regards
anand

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.com
Sent: Friday, September 28, 2007 12:02 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to identify /3GB switch?

Hi All,

How can I identify programatically that the operating system is booted
with /3GB switch?

Thanks & Regards,
Amit.


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

Check out the bottom of http://msdn2.microsoft.com/en-us/library/bb613473.aspx for some ideas.

  • Danilo