Date: Thu, 11 Jul 1996 12:25:41 +0200 (IST) From: Eli Zaretskii To: Merlin Cc: djgpp AT delorie DOT com Subject: Re: Mem info at DPMI init In-Reply-To: <4s279p$6ki@news.onramp.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 11 Jul 1996, Merlin wrote: > First off, I'm new with DJGPP and pmode. When you start up Quake > (which was compiled in DJGPP, it prints info on how much DPMI, > virtual, and other types of memory there are. I want to have that > stuff in my programs too. How do I do this? Is it some setting in > CWSDPMI or is it just printf'd values from functions that return > amounts of memory? Any help is much appreciated. There are a couple of functions in the DJGPP library that will return various pieces of info about memory. The most useful functions are `__dpmi_get_free_memory_information' and `__dpmi_get_memory_information'; look them up in the library on-line docs, like this: info libc alphabetic __dpmi_get_memory_information RET