Currently for XP, Disables Mouse movement and keyboard input.
PHP Code:
using System.Runtime.InteropServices;
[DllImportAttribute("user32.dll", EntryPoint = "BlockInput")]
[return:MarshalAsAttribute(UnmanagedType.Bool)]
public static extern bool BlockInput([MarshalAsAttribute(UnmanagedType.Bool)] bool fBlockIt);
public static void BlockInput(TimeSpan span) {
try {
NativeMethods.BlockInput(true);
Thread.Sleep(span);
} finally {
NativeMethods.BlockInput(false);
}
}
Results 1 to 1 of 1
Thread: [C#] Disable Input
- 26 Jan. 2011 01:13am #1
[C#] Disable Input