From: "Harold" Newsgroups: comp.os.msdos.djgpp Subject: memory sharing problem on WinNT Date: Fri, 25 Sep 1998 10:43:42 -0500 Organization: Flashnet Communications, http://www.flash.net Lines: 27 Message-ID: <6ugpo2$st5$2@excalibur.flash.net> NNTP-Posting-Host: p236.amax5.dialup.dfw1.flash.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Dear all: 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. I know WinNt make it very hard. I try many ways, for example, File mapping. But file mapping can't let you share memory starting fom specific virtual address. You can only allocate a memory, and share it. I also try the Kernel mode driver, by using MDL(memory descrptor list). It also doesn't work? Any suggestions will be greatly appreciated. Harold