VB.NET disable the keyboard and mouse

后端 未结 3 475
余生分开走
余生分开走 2021-01-21 20:53

I am looking to create a VB.NET application. when the application is opened it will disable the keyboard and mouse so if you hit any keys it does nothing and you can not move th

相关标签:
3条回答
  • 2021-01-21 21:24

    Both the mouse and the keyboard will be quite dead when you P/Invoke BlockInput(). The three finger salute will be required. Visit pinvoke.net for the declaration.

    0 讨论(0)
  • 2021-01-21 21:25

    Take a look at global hooks. They are bad. They are evil. But the exist because every once in a while someone actually needs them.

    0 讨论(0)
  • 2021-01-21 21:34

    Not going to happen, and not something you should really be trying to achieve in isolation.

    You can (rightly) never intercept Ctrl+Alt+Del, for example

    0 讨论(0)
提交回复
热议问题