Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DllImport("user32.dll")]
- public static extern short GetAsyncKeyState(System.Windows.Forms.Keys vKey);
- public static IntPtr handle = FindWindow(null, WINDOW_NAME);
- [DllImport("user32.dll")]
- public static extern IntPtr FindWindow(string IpClassName, string IpWindowName);
- [DllImport("user32.dll")]
- public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
- [DllImport("user32.dll", SetLastError = true)]
- public static extern int GetWindowLong(IntPtr hWnd, int nIndex);
- [DllImport("user32.dll")]
- [return: MarshalAs(UnmanagedType.Bool)]
- public static extern bool GetWindowRect(IntPtr hwnd, out RECT IpRect);
- public static RECT rect;
- public struct RECT
- {
- public int left, top, right, bottom;
- }
Advertisement
Add Comment
Please, Sign In to add comment