X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: RayeR 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: NNTP-Posting-Host: 195.70.144.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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?