delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/02/23:19:22

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cwsdpmi: a users guide?
Date: Thu, 02 Apr 1998 18:09:03 -0500
Organization: Two pounds of chaos and a pinch of salt.
Lines: 30
Message-ID: <35241A8F.430E@cs.com>
References: <35223163 DOT 0 AT newscene>
NNTP-Posting-Host: ppp226.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Greg Cheak wrote:
> 
> Does there exist a guide for proper usage (w/ examples) of dpmi functions
> using cwsdpmi. What I am looking for are examples in actual code snippets. I
> have a (DOS) program compiled via gcc that loves RAM, can't get enough. Seems
> that all Windows will give it is ~16mB.

This is not quite true, and using the DPMI functions wouldn't help in
any case.  They are mostly for allocating conventional memory blocks for
interfacing with real-mode code, or for allocating additional
descriptors for various tasks, etc.

To get Windows to give your programs more DPMI memory, simply open the
MS-DOS Prompt preferences, select the Memory tab, and manually set DPMI
memory to 65535 KB.  You can set up to 16384 from the drop menu but
Win95 will let you enter a value up to 64 MB.

You don't say specifically, but if you should happen to be using Windows
3.x, you should open _default.pif and dosprmpt.pif in the PIF Editor and
change all the maximum memory values to -1.

-- 
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>  UIN# 7406319

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? C++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---)
O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++
e(*)>++++ h!() !r !y+()
------END GEEK CODE BLOCK------

- Raw text -


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