Comments: Authenticated sender is From: "George Foot" To: yjtseng Date: Fri, 9 Apr 1999 02:10:49 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: RE: Help needed in getting CR0 under DOS CC: djgpp AT delorie DOT com X-mailer: Pegasus Mail for Win32 (v2.42a) Message-Id: Reply-To: djgpp AT delorie DOT com On 8 Apr 99 at 15:14, yjtseng wrote: > I don't know that the inline code is in protected mode or real mode when it > is executed? All your code is executed in protected mode, unless you load it into lower memory and use special DPMI functions to execute it. > As to (2), maybe you are right but is there anyway to verify > it? As to (3), yes, I use normal cwsdpmi.exe. Any document that I can access > to see the difference between CWSDPR0 under DOS and CWSDPMI and how can I > invoke it? Thanks. See CWSDPMI.DOC. CWSDPR0 runs your code in ring zero. You can either stubedit your binary, or run CWSDPR0 before your program (which will preload it for just one run of the program, after which it will unload itself), or use the command line to load it permanently. In either of the latter two situations the djgpp stub sees that a DPMI host is already present and doesn't try to load CWSDPMI. -- George