home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10745 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!purdue!yuma!hallch
  3. From: hallch@CS.ColoState.EDU (christopher hall)
  4. Subject: Re: Disable CTRL+BREAK from a TP6 program
  5. Sender: news@yuma.ACNS.ColoState.EDU (News Account)
  6. Message-ID: <Nov18.202206.59161@yuma.ACNS.ColoState.EDU>
  7. Date: Wed, 18 Nov 1992 20:22:06 GMT
  8. References: <1992Nov18.141829.813@bradford.ac.uk>
  9. Nntp-Posting-Host: beethoven.cs.colostate.edu
  10. Organization: Colorado State University, Computer Science Department
  11. Lines: 26
  12.  
  13.  
  14. >I am writing a TP6 program which requires the CTRL+BREAK sequence to be
  15. >disabled, as it loads in data tables and manipulates them in real time.
  16. >If CTRL+BREAK is pressed then the program bombs out and leaves the tables
  17. >in a real mess.
  18. >
  19.  
  20. I played around with this problem a few years ago.  The solution I came
  21. up with was to hook the Ctrl-Break interrupt.  I don't remember what it
  22. was (I think it was around 24h).  The only thing my interrupt was to do
  23. was return immediately to its caller.  I used this when I had to write
  24. a simple program for a teacher of mine (he wanted students to have to
  25. enter a password without being able to break of out the program).
  26.  
  27. Hope this helps.
  28.  
  29.                         Chris Hall :-)
  30.  
  31.  
  32. /--------------------------------------------------------------------------\
  33. |    Just because your paranoid doesn't mean someone is not after you...   |
  34. |                                                                          |
  35. |       |________          Chris Hall                                      |
  36. | ||OOO||________>         hallch@handel.colostate.edu                     |
  37. |       |                                                                  |
  38. \__________________________________________________________________________/
  39.