Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site ecsvax.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!decvax!mcnc!ecsvax!bishop
From: bishop@ecsvax.UUCP (Alan Bishop)
Newsgroups: net.micro.pc
Subject: Re: How do I disable ?
Message-ID: <1596@ecsvax.UUCP>
Date: Tue, 9-Jul-85 11:10:41 EDT
Article-I.D.: ecsvax.1596
Posted: Tue Jul  9 11:10:41 1985
Date-Received: Thu, 11-Jul-85 20:28:26 EDT
References: <24700111@uiucdcs> <3201@cca.UUCP>
Reply-To: bishop@ecsvax.UUCP (Alan Bishop)
Organization: Student at NC School of Sci and Math
Lines: 26

In article <3201@cca.UUCP> norcott@cca.UUCP (Bill Norcott) writes:
>	Here is the code to disable the CTRL-BREAK interrupt:
>
>	call by INT 21H
>	REG AH = 33H ( get or set CTRL-BRK)
>	REG AL = 0 for get, 1 for put (set it to 1)
>	REG DL = 0 for OFF, 1 for ON  (set it to 0)
>	On return:
>		DL = 0 if BREAK=OFF, or 1 if BREAK=ON

This is not for turning CTRL-BREAK on and off in the same sense that
redirecting the interrupt does.  This only turns extended-break checking
off, which is the default.  Extended-break checking checks for Ctrl-Break
during most INT 21H calls, while having it off only checks during certain
ones (keyboard read, write, etc.).

Concerning the original request for Ctrl-Break trapping software,
I don't have any.  You might want to look at INT 1BH, as shown in
the Tech. Ref. manual, which is the lowest level Ctrl-Break catch.
Unfortunately, several programs change it, so you'd have to keep up
with changing it.
 
-- 

				Alan Bishop
			     ...!{decvax,akgua}!mcnc!ecsvax!bishop