Mail Archives: djgpp/2002/06/26/15:15:19
"Simone Navari" <simnav AT email DOT it> 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.
- Raw text -