Mail Archives: djgpp-workers/1999/06/27/10:10:23
On Thu, 24 Jun 1999, Charles Sandmann wrote:
> > This cannot happen, because Windows lives in another virtual machine.
> > That is, Windows and the DOS box have different sets of page tables,
> > so there's no way a DOS program can write into the Windows address
> > space, at least not by dereferencing a pointer.
>
> Actually Windows 3.x and 9.x use a single set of page tables, so when
> you do the nearptr hack you can overwrite everything ....
I'm positive I saw in some book a description of how Windows makes
different VMs separate in memory. It had to do either with page
directories or with page tables. The effect is supposed to be that the
same address in two different VMs is mapped to a different place in the
CPU's linear address space.
I understand that this is one reason why two DOS boxes cannot talk to
each other via PM memory.
- Raw text -