Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!styx!ames!ucbcad!ucbvax!cbatt!ihnp4!ihlpa!reb2 From: reb2@ihlpa.UUCP (Brown) Newsgroups: comp.sys.ibm.pc Subject: DOS Program Termination Message-ID: <2337@ihlpa.UUCP> Date: Thu, 20-Nov-86 14:54:24 EST Article-I.D.: ihlpa.2337 Posted: Thu Nov 20 14:54:24 1986 Date-Received: Fri, 21-Nov-86 02:01:22 EST Distribution: net Organization: AT&T Bell Labs, Naperville, IL Lines: 19 *** REPLACE THIS LINE WITH YOUR MESSAGE *** This goes along with my previous posting regarding Ctl-C and Ctl-Break. I am trying to write a resident program that would get control after a program terminates, before going back to the DOS prompt. I have been able to do this for programs which terminate by issuing interrupts, such as INT20h and INT21h func. 4Ch. But none of these seem to catch a program which terminates by pressing Control-Break. For example, if a sample program issues a INT16h with AX=0, which results in waiting for a key to be struck, if I press Control-Break, the program terminates without, as far as I can tell, and interrupt such as INT20h. Does anyone know how to trap the above termination condition? Thanks, Rick Brown ihnp4!ihlpa!reb2