Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Disable the windows key using C#

Disable the windows key using C#

Scheduled Pinned Locked Moved C#
csharphelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    smraj1503
    wrote on last edited by
    #1

    hi, iam doing one project here ia wana to disable the windows key in keyboard by using C#.net2005 can u suggest me give some source code related to this problem...

    M realJSOPR R 3 Replies Last reply
    0
    • S smraj1503

      hi, iam doing one project here ia wana to disable the windows key in keyboard by using C#.net2005 can u suggest me give some source code related to this problem...

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      So super glue did not work then. Did the link supplied last time help at all.[^]

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • S smraj1503

        hi, iam doing one project here ia wana to disable the windows key in keyboard by using C#.net2005 can u suggest me give some source code related to this problem...

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote on last edited by
        #3

        http://www.codeproject.com/KB/system/CSLLKeyboard.aspx[^][^]

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        1 Reply Last reply
        0
        • S smraj1503

          hi, iam doing one project here ia wana to disable the windows key in keyboard by using C#.net2005 can u suggest me give some source code related to this problem...

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          You need to install a keyboard hook (You don't need a low-level hook for your purpose). The first option would be to search and use one of the things already written in C#. (Hint: another user has already given you a link to such an article) Secondly, there are plenty of hooks already written in as DLLs in C++ and you can just use one of those from your C# app after modifying the C++ code to trap the Windows key (0x5B and 0x5C) and ensuring the exported calling convention in the DLL is 'right' for your use. Thirdly, you can read the docs and write your own hook and give me a shock! Now - you've been asking this for a while. Where *exactly* is the problem and what code have you written so far?

          Cheers, Rajesh R Subramanian.

          It is a crappy thing, but it's life -^ Carlo Pallini

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups