Mail Archives: djgpp/2001/07/15/15:55:52
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
> You have all the cards: just chain to the default handler only when
> Ctrl-C or Ctrl-BREAK was pressed. You can detect that using the
same
> code as the default handler does (see the file
src/libc/go32/exceptn.S
> in the djlsr203.zip archive). In a nutshell, it looks at the
keyscan
> code and the shift byte in the BIOS area.
perhaps i'm being thick here, but i haven't seen a mechanism to
selectively chain to a previous interrupt handler anywhere, the FAQ or
otherwise. i've always either set up the interrupt handler via
_go32_dpmi_[set/chain]_protected_mode_interrupt_vector, and that's
all.
how does one chain to the previous handler from C code, especially in
the middle of an already-executing interrupt handler? should i be
accessing ___djgpp_hwint_flags?
thanks in advance,
matthew.
- Raw text -