www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/16/18:09:08

Xref: news2.mv.net comp.os.msdos.djgpp:5044
From: jb3207 AT eclipse DOT co DOT uk (Jason Barstow)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Blocking Keys in Win95
Date: Sun, 16 Jun 1996 09:34:32 GMT
Organization: Jabber Interactive
Lines: 38
Message-ID: <4q0kg7$qlc@pub.news.uk.psi.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960606090949 DOT 27903J-100000 AT is> <4ps40p$mpo AT ns DOT felk DOT cvut DOT cz>
Reply-To: jb3207 AT eclipse DOT co DOT uk
NNTP-Posting-Host: callisto-p1.eclipse.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

machek AT atrey DOT karlin DOT mff DOT cuni DOT cz (Pavel Machek) wrote:

>: > > 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.

>Well. You can. But you would have to write some windows-specific code in
>386 assembly, which would become part of windows and pass these interrupts
>to you. Not worth writing, in my opinion.

Hitting the START button (the new Win95 key that sits between the left CTRL
and ALT keys) is very easy to do. If you haven't seen this it effectively
moves your application to the background and brings up the START menu in
Win95.

The *big* problem is that if you're in an SVGA mode switcing back to your
application is not likely to work. Certainly, this crashes my applications
outright.

This is important if you're writing an app (as I am) that you want to say
works under lots of OSs including Win95.

I personnaly don't have the skills to attempt the solution suggested above. If
anyone has a simpler solution or is inclined to implement the above then
*please* share it.

(Personally, I think that the Win95 developers made an oversight when
ommitting the START key from the PIF editor)

Jason.


- Raw text -


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