Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Runtime.InteropServices;
- namespace System
- {
- public static class User32
- {
- public const int SW_RESTORE = 9;
- [DllImport("User32")]
- public static extern int FlashWindow(IntPtr hwnd, int bInvert);
- [DllImport("User32")]
- public static extern bool LockWindowUpdate(IntPtr hWndLock);
- [DllImport("User32.Dll")]
- public static extern void GetWindowText(int hWnd, StringBuilder str, int nMaxCount);
- [DllImport("user32.dll", EntryPoint = "SetForegroundWindow")]
- public static extern bool SetForegroundWindow(IntPtr hWnd);
- [DllImport("user32.dll")]
- public static extern Boolean ShowWindow(IntPtr hWnd, Int32 nCmdShow);
- public static bool DontKeepRunningWhenClosed = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment