From: JP Morris Newsgroups: comp.os.msdos.djgpp Subject: Re: PMode Newbie question Date: Tue, 21 Jul 1998 13:08:37 +0100 Message-ID: <35B484C4.72FCB25C@calderauk.com> References: Reply-To: b52g AT usa DOT net NNTP-Posting-Host: no-dns-yet.demon.co.uk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Eli Zaretskii wrote: > > Please do not abuse the good will of people who provide help here by > posting questions for which the answers are already available and easy > to find. This forum is NOT a free hot line. In that case, I apologise for wasting your time. Now, for anyone else who is interested in the reliability of the memory interrogation functions, an examination of the source shows that: __go32_dpmi_remaining_physical_memory() returns available_physical_pages*4096, if it is nonzero, otherwise it will return the total available memory in bytes. However, under certain DPMI servers this will return -1 if it is not supported, so it will still fail under these servers.