public static void CleanKeyboardBuffer() { using (var cliente = new User32Client()) { cliente.CleanKeyboardBuffer(); } }
public static bool BlockInput(bool blockIt) { using (var cliente = new User32Client()) { return(cliente.BlockInput(blockIt)); } }
public static bool BringWindowToFocus(IntPtr hWnd) { using (var cliente = new User32Client()) { return(cliente.SetForegroundWindow(hWnd)); } }