🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #14508

DOS Program Termination

#14508
From: Brown
Date: Thu, 20 Nov 1986 19:54
19 lines
1270 bytes
*** 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
Technical Details
Message-ID: <2337@ihlpa.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!styx!ames!ucbcad!ucbvax!cbatt!ihnp4!ihlpa!reb2

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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