home *** CD-ROM | disk | FTP | other *** search
- NOBOOT.COM--Ethan Winer--User-to-User--November 10, 1987
-
- SYNTAX: [d:][path]NOBOOT
-
- Most good programs provide some type of protection against inadvertent
- operator errors. For example, pressing Ctrl-Break in an accounting
- program could cause it to end before important information has been
- written to disk. But one action that's difficult to guard against is
- rebooting with Ctrl-Alt-Del.
-
- Many programmers feel that if someone wants to get out of a program
- that badly, then you should let him. Still, preventing even this
- drastic action is possible.
-
- Trapping Ctrl-Break is easy, because the address for this routine is
- kept in low memory. All a program has to do is poke a new address
- there, which usually points to a return instruction located somewhere
- in ROM. But Ctrl-Alt-Del is handled entirely by the PC's BIOS, so
- another approach is needed.
-
- NOBOOT is a program that stays resident and intercepts keyboard
- interrupt 9, and once it is loaded it will receive control every time
- a key is pressed. If the key is anything but Ctrl-Alt-Del, then it
- passes it on to the original interrupt 9 handler in ROM. Otherwise,
- it simply ignores the request and returns.
-
- Once you've run NOBOOT, it will normally be impossible to reboot
- without turning off the power. You could however run a program like
- WARMBOOT.COM to do it.
-
- Some programs that take over INT 9, such as SideKick, will steal the
- interrupt back, so if you want to run NOBOOT with SideKick, be sure to
- load SideKick last. You should also test NOBOOT first with other
- interrupt-greedy programs that you normally run.
-