Connecting Tech Pros Worldwide Help | Site Map

'Killing' the window key

D & J G
Guest
 
Posts: n/a
#1: Aug 27 '06
Hi all

Has anyone had success with VB6 in making the Windows 'Window' key
inoperable? The minimize / exit buttons at the top can be disabled and the
task bar hidden but I can't disable this key.

Reason is that my program, designed for student access, once running should
not permit access to anything else for security reasons. A staff password
is required to exit the program.

Any ideas?
Don


Max
Guest
 
Posts: n/a
#2: Aug 27 '06

re: 'Killing' the window key


I have a product that needs to respond to the keyboard regardless of if the
app has focus or not, so I use a low level keyboard hook,

you may be able to do the same thing to trap the key combination,

Here are two links to get you started

http://www.codeguru.com/vb/gen/vb_sy...int.php/c4829/

http://msdn.microsoft.com/library/de...yboardProc.asp



"D & J G" <donandjane@optusnet.com.auwrote in message
news:44f1074d$0$25163$afc38c87@news.optusnet.com.a u...
Quote:
Hi all
>
Has anyone had success with VB6 in making the Windows 'Window' key
inoperable? The minimize / exit buttons at the top can be disabled and
the task bar hidden but I can't disable this key.
>
Reason is that my program, designed for student access, once running
should not permit access to anything else for security reasons. A staff
password is required to exit the program.
>
Any ideas?
Don
>

Dean Earley
Guest
 
Posts: n/a
#3: Aug 29 '06

re: 'Killing' the window key


D & J G wrote:
Quote:
Hi all
>
Has anyone had success with VB6 in making the Windows 'Window' key
inoperable? The minimize / exit buttons at the top can be disabled and the
task bar hidden but I can't disable this key.
>
Reason is that my program, designed for student access, once running should
not permit access to anything else for security reasons. A staff password
is required to exit the program.
You can either replace the shell entirely (no explorer is running) or
run your app in another desktop.
see this for more info:
http://www.vbaccelerator.com/home/vb...ps/article.asp

Bear in mind, giving them access to ANY app that can run other apps
removes all this "security".
This does include the entire MS Office suite, and anything with a file
open/save dialog.

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Closed Thread