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