Guest User

Untitled

a guest
Oct 17th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. [DllImport("user32.dll")]
  2. static extern bool BlockInput(bool fBlockIt);
  3. static void Main(string[] args)
  4. {
  5. Console.WriteLine("Hello I am Executing");
  6. BlockInput(true);
  7. Console.WriteLine("Blocked Input");
  8.  
  9.  
  10. Thread.Sleep(5000);
  11. BlockInput(false);
  12. Console.WriteLine("Block input release");
  13. Console.ReadLine();
  14. }
Add Comment
Please, Sign In to add comment