Message-ID: <38A337FF.CE87A39D@maths.unine.ch> Date: Thu, 10 Feb 2000 22:13:19 +0000 From: Gautier X-Mailer: Mozilla 4.7 (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Untrapping Ctrl-C in DJGPP References: <01bf725f$15b1d9e0$12e126d4 AT pena-ii> <01bf7348$40dc9260$69e126d4 AT pena-ii> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: mac13-32.unine.ch X-Trace: 10 Feb 2000 22:11:59 +0100, mac13-32.unine.ch Lines: 37 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Damian Yerrick: > What signal does clicking a Win9x DOS box's close box generate? Via $2f interrupt (see unit below and the Interrupt List http://www.ctyme.com/rbrown.htm). Also possible to change the Window title & subtitle. Win3.x+ also allows transferring the clipboard! Example in... http://members.xoom.com/gdemont/edit.htm HTH -- Gautier {---------------------------------------------------------------------. | W95Close | Sensivity to Windows 95+ close requests | |--------------' Version: 10.I.1999 / first: 13.III.1998 | | TP 6.0+ Author: Gautier DOT deMontmollin AT Maths DOT UniNe DOT CH | `---------------------------------------------------------------------} unit W95Close; interface const close_selected=0; close_acknowledged=1; do_continue=$168f; state_set_successfully=0; enable=1; disable=0; query=$100; acknowledge=$200; cancel=$300; function Command(cmd: word): word; var status: word; implementation function Command; assembler; asm mov dx, cmd; mov ax, $168f; int $2f; mov status, ax end; end.