Mail Archives: djgpp/1996/05/30/01:37:56
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 -