Date: Wed, 25 Apr 2001 23:39:43 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "The Owl" Message-Id: <6480-Wed25Apr2001233942+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: sandmann AT clio DOT rice DOT edu, djgpp-workers AT delorie DOT com In-reply-to: <3AE5877C.29248.5DE2385@localhost> (theowl@freemail.c3.hu) Subject: Re: win2000/ntvdm/djgpp (fwd) References: <2427-Tue24Apr2001004115+0300-eliz AT is DOT elta DOT co DOT il> from "Eli Zaretskii" at Apr 24, 2001 12:41:16 AM <3AE5877C DOT 29248 DOT 5DE2385 AT localhost> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "The Owl" > Date: Tue, 24 Apr 2001 14:02:36 +0200 > > > To get W2K to see it, do we need to do a dpmi_int with the real mode PSP, > > or a protected mode Int 21 with the PM selector for the PSP? > > pmode int and pmode selector. Having thought about this, I must admit this worries me a bit. What will CWSDPMI do when the application issues a PM Int 21h with the PSP selector in EBX? According to what I see in CWSDPMI's sources, it simply chains to the real-mode handler of Int 21h, i.e. to DOS. But DOS doesn't know what to do with a PM selector of our PSP, so it might become confused, with potentially disastrous consequences (file operations will begin to fail, memory allocations might not work, function 4Ch could hang, etc.). Charles, am I right about what CWSDPMI will do, or did I miss something? So could we please talk about this some more? Why do we need to issue a PM interrupt, and why do we need to use the PM selector of our PSP? Isn't __dpmi_int with the real-mode PSP segment good enough?