Is there a way to disable keyboard & mouse?
Ideally I’m looking for a solution whereby I could completely disable mouse and almost disable the keyboard – bar one key combination, for example Ctrl+A. So, once Ctrl+A is pressed – the PC will go to a mute stage (no mouse/keyboard) until Ctrl+A is pressed again.
have a look at “BlockInput Function”
refer MSDN