Mail Archives: djgpp/1998/10/19/08:52:31
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 -