Dec 142017
 
C routine to intercept Abort/Retry/Ignore message.
File INT24-C2.ZIP from The Programmer’s Corner in
Category C Source Code
C routine to intercept Abort/Retry/Ignore message.
File Name File Size Zip Size Zip Type
INT24.C 5256 2045 deflated
READ.ME 1144 668 deflated

Download File INT24-C2.ZIP Here

Contents of the READ.ME file


Enclosed find int24.c. This is a source code file for Turbo-C
that allows you to write your own "critical event handler". The
critical event handler is the code in DOS which prints the message
"Disk Error, (A)bort (R)etry (F)ail"... and gets a keystroke from
the user to decide what to do. This tends to mess up people's pretty
screens so it is nice to catch it. You might even disallow aborting, if
you don't wan't to let people abort the program.

The only thing to keep in mind is that you CANNOT call any DOS routines
in the handler, because DOS is not reentrant.

This file is provided on an as-is basis. It is public domain and I make
no claims whatsoever as to what it actually does 🙂 Hopefully it will
prove useful to PC programmers.

Joel Spolsky
eMail:[email protected] (internet)
SPOLSKY@YALECS(Bitnet)
...!harvard!yale!edu(UUCP)

Let me know if you find any bugs...

Note: There was an earlier version of this floating around that calls
the TC function bioskey(). I got rid of that because bioskey in turn
calls DOS which is not allowed (and often hangs the computer) in
interrupt handlers.




 December 14, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)