home *** CD-ROM | disk | FTP | other *** search
- Herein is a set of C callable asm routines to trap CTL-C
- CTL-BREAK and CTL-ALT-DEL. The memory model is selected with a
- assembler line define: masm -ML -DM_LARGE d_break.asm; see the file
- model.inc for additional info. From C the routines are handled as
- such:
-
- main () {
-
- int break_flag; /* Flag to test whether CTL-C, CTL-BREAK,
- * or CTL-ALT-DEL has been pressed.
- */
-
-
- break_off (&break_flag); /* Captures the keystokes */
- .
- .
- .
- break_on (); /* Resumes normal DOS processing */
-
- }
-
- The routines have been tested and work well with the large memory
- model. I've included assembled objects for those of you who don't
- have an assembler.
-
- Have fun!
-