How can I intercept all key events, including ctrl+alt+del and ctrl+tab?

后端 未结 12 1441
眼角桃花
眼角桃花 2020-11-28 13:06

I\'m writing a screen saver type app that needs to stop the user from accessing the system without typing a password. I want to catch/supress the various methods a user migh

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 13:47

    I have not tested it but what about using SetWindowsHookEx()

    From MSDN documentantion: WH_KEYBOARD_LL

    Windows NT/2000/XP: Installs a hook procedure that monitors low-level keyboard input events. For more information, see the LowLevelKeyboardProc hook procedure.

提交回复
热议问题