delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/07/03/13:30:37

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: RayeR <glaux AT centrum DOT cz>
Newsgroups: comp.os.msdos.djgpp
Subject: Shared array between DJGPP app under NTVDM (WNT-XP) and win32 app
Date: Thu, 3 Jul 2008 10:29:48 -0700 (PDT)
Organization: http://groups.google.com
Lines: 13
Message-ID: <ef101987-cdd2-46e9-af5d-528dbaa04d7a@w7g2000hsa.googlegroups.com>
NNTP-Posting-Host: 195.70.144.29
Mime-Version: 1.0
X-Trace: posting.google.com 1215106188 32312 127.0.0.1 (3 Jul 2008 17:29:48 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Thu, 3 Jul 2008 17:29:48 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: w7g2000hsa.googlegroups.com; posting-host=195.70.144.29;
posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13)
Gecko/20080313 SeaMonkey/1.1.9,gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
is it possible to create a static buffer (array of few megs) which can
be accessed both by a DJGPP program running under NTVDM of WinNT/XP
and console win32 application compiled in MinGW32? I would imagine
that in DJGPP I will read current DS, look to LDT which is the base of
the DS selector and some way forward this base + offset to buffer to
win32 app. It will create its own local selector with this base+offset
and will read from there. But I don't know if it would be possible
from user program or I would need some KMD which will be called
through IOCTL - bleh big overhead.
Or would it be possible to do it from other side? Allocate buffer in
win32 app and acces it from DJGPP program?
Any idea?

- Raw text -


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