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

后端 未结 12 1383
眼角桃花
眼角桃花 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:53

    You can't. The whole point of Ctrl+Alt+Del is that only the system gets to handle it, 'cause that way the system can always handle it.

    Fortunately, Windows has built-in support for password-protected screensavers (available as the "On resume, password protect" option in Display Properties, or via group policy). Just use that.

提交回复
热议问题