I used following code but it blocks all inputs, not only wired devices but also bluetooth HID devices. [DllImport("user32.dll")] private static extern bool BlockInput(bool block); public static void FreezeMouse() { BlockInput(true); } public static void ThawMouse() { BlockInput(false); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)