From: "Charles Sandmann" Newsgroups: comp.os.msdos.djgpp Subject: Re: Some dpmi questions ? Date: Mon, 21 Apr 1997 22:37:34 Organization: Aspen Technology, Inc. Message-ID: <335bec2e.sandmann@clio.rice.edu> References: Reply-To: sandmann AT clio DOT rice DOT edu NNTP-Posting-Host: spica.dmccorp.com Lines: 11 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > > What is the field 'handle' in _dpmi_meminfostructure > It's needed to handle the memory which is sbrk'ed from the DPMI host. > You will need to ask Charles for the details. sbrk()'ed memory is allocated in 64K or larger pieces from the DPMI host using the 0x501 dpmi call. These memory allocations may be non-continous. The "handle" field is the one returned by the DPMI host. The only time this information is really useful is with a DPMI 1.0 feature supporting host (like 386MAX or CWSDPMI) so you can set page protections/commitment, or other interesting things. It's also used in the final cleanup step to release the memory.