delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/30/01:37:56

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199605300519.AA074793549@relay1.geis.com>
Date: Thu, 30 May 96 05:06:00 UTC 0000
To: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: How much free memory?

Reply to message 7433102    from CALVID AT MATISS on 05/28/96 12:36PM


>How exactly do I find how much free physical memory is available to my
>program?  I'm sure there is a function somewhere to do it, but I don't
>know what it is.  Thanks in advance.

Look at these functions:
__dpmi_get_free_memory_information
__dpmi_get_memory_information
__go32_dpmi_get_free_physical_memory
__go32_dpmi_get_free_virtual_memory

They all return information about free system memory.  However, be
aware that under DPMI, there is no 100% effective way to determine
exactly how much free memory you have.  It is one of the few flaws of
working in protected mode.  There is also some information in the
FAQ about this, I believe.

John

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019