Results 1 to 5 of 5

Thread: global key hook?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    global key hook?

    I know there are ways of hooking keys into Windows from your app to catch the key pressed. thats all very well but what we want to do is to disable the use of the Windows key.

    how can we do this? The reason is because this is a kiosk application and want to prevent users from pressing keys to try and see "behind the scenes"

    how can I catch the Windows key at the application level and handle it, either allow the key or reject it.

    thanks

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: global key hook?

    Here is a vb.net project that claims it can do it:

    http://planetsourcecode.com/vb/scrip...1052&lngWId=10

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: global key hook?

    I found a way eventually, going to post the code tomorrow hopefully

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  4. #4
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: global key hook?

    I believe there is a way to disable that key in the windows registry.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: global key hook?

    well doing it through the registry is bad practice for a number of reasons:

    1) the user may not want you to do that and interfere with the system
    2) security issues when accessing the registry. What if the user was on a low permissions account?

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width