www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/11/22:41:55

From: Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Untrapping Ctrl-C in DJGPP
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <a3l9asgktek4q1ucfjcsg3rbhb17vdh0ua@4ax.com>
References: <01bf725f$15b1d9e0$12e126d4 AT pena-ii> <Pine DOT SUN DOT 3 DOT 91 DOT 1000209090433 DOT 9816J-100000 AT is> <01bf7348$40dc9260$69e126d4 AT pena-ii> <Pine DOT SUN DOT 3 DOT 91 DOT 1000210133041 DOT 27855K-100000 AT is> <f2s5as89cbh6f1c4effk3bb03k1bnk2s6i AT 4ax DOT com> <38A472E7 DOT 2E9862E1 AT is DOT elta DOT co DOT il>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 32
X-Trace: /bQNubjGSjVa76AzxhL9gyhaxoGSpqNEdOKBAJusxvM1szkNrXHMBp9DPjOyQzYBjjgBZI1N94pV!BbHBVWnTnEOy78rAonq62Lb++6sqiH7/RnxGxQp9vNFVQFQtYMFc5w7HeDrFSi7yFPHyYGvkRYcT!1EoQudk=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Sat, 12 Feb 2000 03:36:10 GMT
Distribution: world
Date: Sat, 12 Feb 2000 03:36:10 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Fri, 11 Feb 2000 22:36:55 +0200, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
wrote:

>Damian Yerrick wrote:
>> 
>> What signal does clicking a Win9x DOS box's close box generate?
>
>None.  Windows closes the DOS box by killing the VM in which that DOS box
>runs.
>
>If the VM still runs a DOS programs, Windows sets the current PSP to that
>program's PSP and then calls function 4Ch of Int 21h, in effect forcing the
>program to exit to DOS.
>
>In any case, no signal is delivered to the program.  In fact, neither DOS nor
>Windows have signals as part of their operation, it's something created and
>handled entirely by the applications' run-time support.  (This is unlike on
>Unix, where signals are generated by the OS.)

So how does edit.com catch it?

(open dos box)
edit foo.c
(type some garbage)
(click close box)
Save changes to foo.c?

-- 
Damian Yerrick  http://yerricde.tripod.com/
Comment on story ideas: http://home1.gte.net/frodo/quickjot.html
AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/
View full sig: http://www.rose-hulman.edu/~yerricde/sig.html

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019