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 all keys including Ctrl+alt+Del

disable all keys including Ctrl+alt+Del

Scheduled Pinned Locked Moved C#
question
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.
  • O Offline
    O Offline
    Obaid ur Rehman
    wrote on last edited by
    #1

    How can I disable all keys including Ctrl+alt+Del , Alt+Tab and Windows Keys when a user is interacting with my form? I have a borderless form which covers the entire screen and I have to probhit the user from getting out from it. Thanks,

    M M D 3 Replies Last reply
    0
    • O Obaid ur Rehman

      How can I disable all keys including Ctrl+alt+Del , Alt+Tab and Windows Keys when a user is interacting with my form? I have a borderless form which covers the entire screen and I have to probhit the user from getting out from it. Thanks,

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      You cannot normally disable Ctrl+Alt+Del because it's the Secure Attention Sequence, used for bringing up the Windows Security dialog. You can stop many other keys from having their usual effects using a keyboard hook. Paul DiLascia documents how to do it - in C++ - in this MSDN Magazine column[^]. Stability. What an interesting concept. -- Chris Maunder

      1 Reply Last reply
      0
      • O Obaid ur Rehman

        How can I disable all keys including Ctrl+alt+Del , Alt+Tab and Windows Keys when a user is interacting with my form? I have a borderless form which covers the entire screen and I have to probhit the user from getting out from it. Thanks,

        M Offline
        M Offline
        MilesAhead
        wrote on last edited by
        #3

        Apparently if you replace one of the system DLLs on NT based system you can bypass control-alt-del but I forget the name of the DLL in question. If you google for NT Admin Tips you might find it and where to get the replacement DLL. I'd advise against this modification without client permission though. :)

        1 Reply Last reply
        0
        • O Obaid ur Rehman

          How can I disable all keys including Ctrl+alt+Del , Alt+Tab and Windows Keys when a user is interacting with my form? I have a borderless form which covers the entire screen and I have to probhit the user from getting out from it. Thanks,

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Yuo can't disable the Ctrl-Alt-Del sequence unless you write your own GINA.DLL and replace the system version with yours. You also can't write the new GINA in C# either... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          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