From: Vinzent Hoefler Newsgroups: comp.os.msdos.djgpp Subject: Re: DMA use in a Windows Dos Box (pls help) Date: Wed, 26 Jun 2002 21:02:52 +0200 Organization: JeLlyFish software References: <226f48f21bb08b3688f34385ce536c18 DOT 34818 AT mygate DOT mailgate DOT org> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.202.184.184 Message-ID: <3d1a0fe0_4@news.bluewin.ch> X-Trace: news.bluewin.ch 1025118176 62.202.184.184 (26 Jun 2002 21:02:56 +0200) Lines: 19 X-Complaints-To: abuse AT bluewin DOT ch To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Simone Navari" wrote: >To do it I use XMS services to allocate >and lock memory but if I try to do it in a Windows Dos Box, the >operating system halts my software when it calls the XMS lock service. >Why Windows don't allow me to do this operation ? Because Windows handles the memory in a virtual (paging) way, it can't give you a physical address for such a block (it simply does not exist), what the plain XMS-service normally does. This would mean, it could not throw out the locked block to the paging file if physical RAM is needed in another task, the block had to be a complete contiguous section (not good for paging) and in such a way it would be easily possible to knock down Windows by using all available memory from within a DOS-session without any dirty tricks... Vinzent.