🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #13388

Re: Expanded Memory Q, DLLs and getenv

#13388
From: Dennis Foster
Date: Fri, 16 Dec 1988 21:08
14 lines
1166 bytes
In article <360@thebeach.UUCP> adam@cfi.COM () writes:
>
>Does anyone out there know where to find info on having windows applications
>access expanded/extended memory? The only piece of info I could find was a
>function called LimitEMSPages(), which tells me how to _limit_ access, but not 
>how to _get_ access in the first place.  Are there Windows calls to do this, or
>do I have to do this in assembler (INT 67H; blech!), or is EMS access done 
>transparently by Windows?
>

Just use GlobalAlloc!  If you are running on a system that has expanded memory
and enough is available, you'll get it (by default).  If you want to allocate
conventional memory, you need to include the GMEM_NOT_BANKED bit on your
call to GlobalAlloc.
Technical Details
Message-ID: <1707@se-sd.sandiego.ncr.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncr-sd!se-sd!dennis
References: <360@thebeach.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncr-sd!se-sd!dennis
From: dennis@se-sd.sandiego.ncr.com (Dennis Foster)
Newsgroups: comp.windows.ms
Subject: Re: Expanded Memory Q, DLLs and getenv
Message-ID: <1707@se-sd.sandiego.ncr.com>
Date: 16 Dec 88 21:08:07 GMT
References: <360@thebeach.UUCP>
Reply-To: dennis@se-sd.sandiego.NCR.COM (Dennis Foster(AEP))
Organization: NCR Corp. Systems Engineering, San Diego
Lines: 14