delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/15/11:46:51

Xref: news2.mv.net comp.os.msdos.djgpp:5865
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Mem info at DPMI init
Date: Thu, 11 Jul 1996 08:32:32 CDT
Organization: Rice University, Houston, Texas
Lines: 14
Message-ID: <31e50270.sandmann@clio.rice.edu>
References: <4s279p$6ki AT news DOT onramp DOT net>
Reply-To: sandmann AT clio DOT rice DOT edu
NNTP-Posting-Host: clio.rice.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> (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

#include <dpmi.h>
__dpmi_get_free_memory_information(&info);

Warnings:
1) Actually only the first value in the structure is required to be 
   returned; unsupported (by a particular DPMI) will be returned as -1.
2) The values in CWSDPMI are a little wrong for most cases (it's a bug
   in the way it computes page usage - memory isn't counted as used 
   until it's touched).  I can't remember why I haven't fixed this.
   Probably 'cause noone has complained.

- Raw text -


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