Re: Detect 3GB switch programmatically

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.
.



Relevant Pages

  • Re: The Origin of The Universe / S D Rodrian
    ... >> and matter is just a little late in the observation? ... > is French bread, there is pasta, and crackers. ... To see how energy relates mass, ... shortfall is kinetic energy. ...
    (sci.physics)
  • Re: The Origin of The Universe / S D Rodrian
    ... >> and matter is just a little late in the observation? ... > is French bread, there is pasta, and crackers. ... To see how energy relates mass, ... shortfall is kinetic energy. ...
    (sci.astro)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: "Corrections to Special Relativity"
    ... change in velocity. ... understand the nature of inertial mass.> ... It is therefore now at rest to system 5; and its kinetic energy is ... since "mass" is a quantity of matter, it is independent of inertia or ...
    (sci.physics.relativity)
  • Re: Preventing/detecting a virtual terminal switch?
    ... Tim Roberts wrote: ... > Why don't you just pop up a window saying "please do not leave our ... For our application that's inappropriate. ... Users are not _allowed_ to switch to a different application. ...
    (comp.os.linux.development.system)