Xref: news2.mv.net comp.os.msdos.djgpp:4637 From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Blocking Keys in Win95 Date: Wed, 5 Jun 1996 22:03:36 +0100 Organization: The University of York, UK Lines: 20 Message-ID: References: <4p4kpg$o03 AT news DOT nevada DOT edu> NNTP-Posting-Host: tower.york.ac.uk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <4p4kpg$o03@news.nevada.edu> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp > I have a keyboard interrupt in my game. Under DOS, you cannot reboot the > system or anything. The controler take total control of the keyboard > like it is supposed to. But with win95, If I hit the START button, or > Cntr-Alt-Del, windows takes over. How can one stop this? Basically you can't. What you are getting under win95 is not a direct hardware interrupt: it is a virtualised interrupt which the OS has already looked at and decided to pass on to your app. Some keys it keeps for itself, and so your program never sees the interrupt. I don't know how this works under win95, but with 3.1 you can use the PIF editor to reserve shortcut keys such as alt+tab and prtscrn, to make windows pass them to your program, but ctrl+alt+del isn't togglable. /* * Shawn Hargreaves. Why is 'phonetic' spelt with a ph? * Check out Allegro and FED on http://www.york.ac.uk/~slh100/ */