Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DllImport("user32.dll")]
- static extern bool BlockInput(bool fBlockIt);
- static void Main(string[] args)
- {
- Console.WriteLine("Hello I am Executing");
- BlockInput(true);
- Console.WriteLine("Blocked Input");
- Thread.Sleep(5000);
- BlockInput(false);
- Console.WriteLine("Block input release");
- Console.ReadLine();
- }
Add Comment
Please, Sign In to add comment