home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / asm / NOBOOT.ZIP / NOBOOT.DOC < prev   
Encoding:
Text File  |  1990-10-22  |  1.6 KB  |  35 lines

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