DelphiFAQ Home Search:

Trapping Win-E shortcut to Explorer for a kiosk application

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

I'm trying to prevent an NT workstation user from being able to use any and all non-alphanumeric keys on the keyboard. More preciselly, I'm trying to trap all the Win (Start Key) shortcuts, like Win-E which invokes an instance of Windows Explorer. At this point, I would settle for disabling ALL keystrokes.

I am using Joe Hecht's excellent example of how to create a system-wide keyboardhook. This part works well. I am able to trap the Win key, when it is pressed by itself so that it doesn't invoke the Start menu on the desktop. But, it doesn't seem to trap the Win-E combination.

Answer:

A possible solution would be to define your own application to be the shell. No Explorer shell, no taskbar, no start button, no start button shortcuts... All this requires is a change to the registry key that defines the shell application.

You would have to reboot to make this registry change effective or you could try to change the key and then destroy the Explorer process.

If you replace the shell and kill the Explorer, it will start your application as the shell. Make sure that your application is checking whether its already in memory so that it's not running two instances. Check the 'see also' documents for more information on this one.

Comments:

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Los Angeles, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.