Date: Mon, 12 Jan 1998 16:38:02 +0200 (IST) From: Eli Zaretskii To: Fabrice ILPONSE cc: djgpp AT delorie DOT com Subject: Re: hardretn and others In-Reply-To: <34B9F41F.2538@trash.lip6.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 12 Jan 1998, Fabrice ILPONSE wrote: > > I would therefore suggest not to mess with this at all. If the original > > code only wants to trap the ubiquitous "Abort, Retry, Fail?" prompt, then > > DJGPP already does it for you. But if the application really needs to > > take any path other than Fail, it is in general not possible in DPMI. > > That's false!! cos I've done it! > > it's very simple but I don't know what'll happen if the program exits > in the handler. I know what happens: your system crashes, either immediately or after a while. I used the word ``impossible'' above in the sense that you cannot do it safely; I didn't mean that it cannot be done at all. However, it hardly makes sense to do something which is known to be dangerous. It is very easy to catch Int 24h (see the DJGPP startup code for an example), but if your handler does anything except return a failure status, your application will crash one day.