Disabling the keyboard in windows c++?

后端 未结 6 2114
轻奢々
轻奢々 2021-01-06 13:56

How can I completely disable the keyboard using c++ in windows? And by completely disable I mean so even Ctrl+Alt+Delete doesn\'t work. I di

6条回答
  •  粉色の甜心
    2021-01-06 14:36

    You could install a keyboard hook and filter out the messages, but you might need to have your application as the top most window. Even then Ctrl+Alt+Del would not get filtered out.

    Here's SetWindowsHookEx on MSDN

    Example of Hooking the Keyboard

提交回复
热议问题