www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/27/06:18:06

Date: Sun, 27 Sep 1998 13:17:31 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Harold <harold AT signalogic DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: memory sharing problem on WinNT
In-Reply-To: <6ugpo2$st5$2@excalibur.flash.net>
Message-ID: <Pine.SUN.3.91.980927131642.25393U-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019