Path: 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 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.