Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!ut-emx!nather From: nather@ut-emx.uucp (Ed Nather) Newsgroups: comp.os.msdos.programmer Subject: Re: cntl-alt-del trap Message-ID: <43301@ut-emx.uucp> Date: 28 Jan 91 15:57:45 GMT References: <24752@grebyn.com> Distribution: na Organization: The University of Texas at Austin; Austin, Texas Lines: 24 In article , valley@uchicago (Doug Dougherty) writes: > levericw@cheetah.ece.clarkson.edu (Walden Leverich) writes: > >frank> Does anyone know of a way to disable (trap) cntl-alt-del within > >frank> a C application. > >Try trapping the keyboard interrupt (INT09) and watching for the > >ctrl-alt-del combination. > > My $.02 worth. I always thought this was a dumb idea. I mean all you > do is force the pern to find the reset switch when (N.B., not "if"!) the > machine locks up. [...] You are making an incorrect assumption, that the only time you want to trap this combination is when the machine "locks up." Be aware that people use computers for many differt things. For example, I use a PC to gather data at a telescope, in real time, and I don't want ctrl-alt-del or ^C or ctrl-PrtSc to bomb the real-time program. There is only one keystroke combination that will halt the program; all the others are trapped. This decision is a result of sad experience in the past. -- Ed Nather Astronomy Dept, U of Texas @ Austin