Detect 3GB switch programmatically

S

scorpneo

Is there some way to (programatically) find out when the OS is booted
in the /3GB mode? The 32-bit version of my application sets a hard
limit of 1700 MB after which it does not try to allocate any more
memory. I'd like to switch this to 2700 MB when the /3GB switch is
available. The best I can come up with till now is to read the
boot.ini file, but I am wondering if there is anything clever out
there, that I can do.

Thanks,
Sashank.
 
T

Tim Slattery

Is there some way to (programatically) find out when the OS is booted
in the /3GB mode? The 32-bit version of my application sets a hard
limit of 1700 MB after which it does not try to allocate any more
memory. I'd like to switch this to 2700 MB when the /3GB switch is
available. The best I can come up with till now is to read the
boot.ini file, but I am wondering if there is anything clever out
there, that I can do.

I don't know. You would have a better chance of getting an answer if
you posted this someplace where programmers hang out.
microsoft.public.win32.programmer.kernel might be a good bet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top