Re: Detect 3GB switch programmatically
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Wed, 23 May 2007 23:49:51 -0700
Kellie Fitton <KELLIEFITTON@xxxxxxxxx> wrote:
On May 23, 11:09 am, scorp...@xxxxxxxxx wrote:
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.
Maybe the page size can help you out:
GetSystemInfo()
http://msdn2.microsoft.com/en-us/library/ms724381.aspx
Another automated response?
Right API, wrong structure member. lpMaximumApplicationAddress should tell
you this.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.
- Follow-Ups:
- Re: Detect 3GB switch programmatically
- From: Gary Chanson
- Re: Detect 3GB switch programmatically
- References:
- Detect 3GB switch programmatically
- From: scorpneo
- Detect 3GB switch programmatically
- Prev by Date: How to tell if Service can interact with Console?
- Next by Date: Re: Detect 3GB switch programmatically
- Previous by thread: Detect 3GB switch programmatically
- Next by thread: Re: Detect 3GB switch programmatically
- Index(es):
Relevant Pages
|