I'm looking for some code (preferably C#) that will prevent keyboard and mouse input.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Expanding on Josh's (correct) answer. Here's the PInvoke signature for that method.
EDIT
Added some code to demonstrate how to block for an interval
Have a look at this article Processing Global Mouse and Keyboard Hooks in C#. The guy who wrote this article have done alot of research around the problem.
Maybe there is somthing in it you can use.
Look into the BlockInput Win32 function
Sounds like some fun testing :)