Mail Archives: djgpp/1998/09/27/06:18:06
On Fri, 25 Sep 1998, Harold wrote:
> I have a DOS program in WinNT. The Buffer inside this DOS program need to be
> shared by Win16 or Win32 program. I use VDD(virtual device driver,
> documented in DDK) to pass the pointer of this Buffer to a Win32
> DLL. So inside this Win32 DLL I can access the DOS buffer by using
> this pointer. But my Win16/or Win32 user program also need to share
> this buffer. Is there a way to do this? Or basically it's
> impossible.
Please explain more about the problem you are trying to solve.
In general, sharing memory between DOS/DJGPP programs and Win32
programs is only possible using some device driver that allocates
memory on behalf of programs and makes that memory available to them.
Access to memory that is private to a DOS box is impossible since each
DOS box is a different virtual machine with a totally separate address
space, and all Win32 programs run in yet another virtual machine.
- Raw text -