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 / C++ / MFC
  4. Stop keyevents and mesages

Stop keyevents and mesages

Scheduled Pinned Locked Moved C / C++ / MFC
questionsecurity
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.
  • J Offline
    J Offline
    Jarek G
    wrote on last edited by
    #1

    Hi! I am working on a security program for children. this program is intended to be a child desktop, the main purpose is to lockout children from windows system. My question is do someone know if there is a smart way to do this? I need to filter keyboard events like ctrl +alt + del and other windows short keys and messages. My program will be like a second desktop leting children run their own programs games etc etc. /Jarek He believed the commercials that said drink beer, get laid but at closin' time he was alone, he didn't get paid. Last night his lover was a razorblade.. "Dan Reed song Mix it up"
    What do you want to patch today?

    M R 2 Replies Last reply
    0
    • J Jarek G

      Hi! I am working on a security program for children. this program is intended to be a child desktop, the main purpose is to lockout children from windows system. My question is do someone know if there is a smart way to do this? I need to filter keyboard events like ctrl +alt + del and other windows short keys and messages. My program will be like a second desktop leting children run their own programs games etc etc. /Jarek He believed the commercials that said drink beer, get laid but at closin' time he was alone, he didn't get paid. Last night his lover was a razorblade.. "Dan Reed song Mix it up"
      What do you want to patch today?

      M Offline
      M Offline
      Monty2
      wrote on last edited by
      #2

      You will probably need to Install Keyboard Hooks i.e. WH_KEYBOARD hook This should get you up and Running :) Click ME[^] Live as if your were to die tomorrow. Learn as if you were to live forever. -Mahatma Gandhi

      1 Reply Last reply
      0
      • J Jarek G

        Hi! I am working on a security program for children. this program is intended to be a child desktop, the main purpose is to lockout children from windows system. My question is do someone know if there is a smart way to do this? I need to filter keyboard events like ctrl +alt + del and other windows short keys and messages. My program will be like a second desktop leting children run their own programs games etc etc. /Jarek He believed the commercials that said drink beer, get laid but at closin' time he was alone, he didn't get paid. Last night his lover was a razorblade.. "Dan Reed song Mix it up"
        What do you want to patch today?

        R Offline
        R Offline
        Robert Kuster
        wrote on last edited by
        #3

        First, check this: Typename, Disabling Keys in Windows XP with TrapKeys[^] > ...the main purpose is to lockout children from windows system I'm not quite sure if this is an option, but in WinXP you could simply add a new account and start your program instead of explorer.exe. Go to: Start -> Run -> gpedit.msc -> Administrative Templates -> System -> Custom User Interface This way most of the Windows hotkeys will go away for free. But two of them will stay: Ctrl-Shift-Esc and Ctrl-Alt-Del (both are intercepted by Winlogon). To get rid of them you could either disable Task Manager (gpedit.msc -> Administrative Templates -> System -> Ctrl+Alt+Del Options). If you are happy with the notification message that pops up when pressing those hotkeys thereafter, then you are all done. If not, or if you simply need complete control over those hotkeys, you have to write a replacement for msGina.dll (search for GINASTUB in MSDN as a starter example; unfortunately the sources were thrown out of MSND .NET, so you'll have to stick with the Visual Studio 6.0 version). In your custom GINA: 1) Gobble WlxStartApplication in order to disable Ctrl-Shift-Esc. 2) To handle Ctrl-Alt-Del either gobble WlxLoggedOnSAS (you get an ugly flicker) or call

        DWORD dwOld;
        pWinlogonFunctions->WlxSetOption( hWlx, WLX_OPTION_USE_CTRL_ALT_DEL, 0, &dwOld );

        (now the screen-saver won't be started anymore). Isn't it always true: You get something but in the same moment you lose something else. :) RK

        A 1 Reply Last reply
        0
        • R Robert Kuster

          First, check this: Typename, Disabling Keys in Windows XP with TrapKeys[^] > ...the main purpose is to lockout children from windows system I'm not quite sure if this is an option, but in WinXP you could simply add a new account and start your program instead of explorer.exe. Go to: Start -> Run -> gpedit.msc -> Administrative Templates -> System -> Custom User Interface This way most of the Windows hotkeys will go away for free. But two of them will stay: Ctrl-Shift-Esc and Ctrl-Alt-Del (both are intercepted by Winlogon). To get rid of them you could either disable Task Manager (gpedit.msc -> Administrative Templates -> System -> Ctrl+Alt+Del Options). If you are happy with the notification message that pops up when pressing those hotkeys thereafter, then you are all done. If not, or if you simply need complete control over those hotkeys, you have to write a replacement for msGina.dll (search for GINASTUB in MSDN as a starter example; unfortunately the sources were thrown out of MSND .NET, so you'll have to stick with the Visual Studio 6.0 version). In your custom GINA: 1) Gobble WlxStartApplication in order to disable Ctrl-Shift-Esc. 2) To handle Ctrl-Alt-Del either gobble WlxLoggedOnSAS (you get an ugly flicker) or call

          DWORD dwOld;
          pWinlogonFunctions->WlxSetOption( hWlx, WLX_OPTION_USE_CTRL_ALT_DEL, 0, &dwOld );

          (now the screen-saver won't be started anymore). Isn't it always true: You get something but in the same moment you lose something else. :) RK

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          Robert Kuster wrote: Isn't it always true: You get something but in the same moment you lose something else. Yes you are right :-) It sems to be that way. I knew that this would not be the easiest thing to do! Thank you!

          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