Date: Mon, 19 Oct 1998 14:17:02 +0200 (MET DST) From: Olivier Perron X-Sender: perron AT rtbsci146s To: Eli Zaretskii Cc: djgpp AT delorie DOT com Subject: Re: Questions about protected mode interrupt handler In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Mon, 19 Oct 1998, Eli Zaretskii wrote: > > On Mon, 19 Oct 1998, Olivier Perron wrote: > > > The interrupt handler is simply NEVER called when my program run in a DOS > > box under Windows 95. But it is under plain DOS. > > Did you try to hook the real-mode interrupt as well? It might be that > the RM hook *will* be called on Windows (and then you could install > either the RM or PM one depending on whether Windows is present). > Ok, I've added code to detect Windows and if windows is present, I install a real mode handler instead of a protected mode one: it seems to work (at least the interrupt handler gets called). Thanks for the hint. Now, I've installed the real mode handler using the _go32_dpmi_allocate_real_mode_callback_iret function and not as you suggest in the FAQ. Are there really penalties if I do so ? Do you have some pointers to code snippet which do what you suggest? Olivier.