delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/19/08:52:31

Date: Mon, 19 Oct 1998 14:17:02 +0200 (MET DST)
From: Olivier Perron <perron AT art DOT alcatel DOT fr>
X-Sender: perron AT rtbsci146s
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: djgpp AT delorie DOT com
Subject: Re: Questions about protected mode interrupt handler
In-Reply-To: <Pine.SUN.3.91.981019131133.10842A-100000@is>
Message-Id: <Pine.GSO.4.05.9810191403060.7524-100000@rtbsci146s>
Mime-Version: 1.0
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.


- Raw text -


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