Mail Archives: djgpp/1997/02/17/22:45:47
Malcolm Taylor wrote:
>
> I have a feeling that it doesn't work correctly under Windows (doesn't
> report the right number). Is this true, and if so how could I get a
> better estimate of the actual remaining physical memory under Windows?
> I know that the available lockable memory should be a good estimate,
> however does Windows report this one properly?
Virtual memory management is a function of Windows' DPMI host, and as
such, cannot be changed by the programmer. The
_go32_dpmi_remaining_*_memory() functions are just wrappers to DPMI
calls, and can only report what they see.
The way Windows handles virtual memory is to simply bundle all of
physical and virtual memory into one lump and call it "physical"
memory. Try typing 'mem' from a Win3.1 DOS prompt and look at the EMS
line - you'll see what I mean. I'm sorry, but I don't know any good way
around this.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| * Proud user of DJGPP! * | http://www.cs.com/fighteer |
| ObJoke: If Bill Gates were a robber, not only would he |
| shoot you, but he'd send you a bill for the bullets. |
---------------------------------------------------------------------
- Raw text -