public static bool IsMinimize(IntPtr hwnd) { if ((WinUser.GetWindowLong(hwnd, WinUser.GWL_STYLE) & WinUser.WS_MINIMIZE) != 0) { return(true); } return(false); }
public static void KeyDown(IntPtr handle, int key) { WinUser.SendMessage(handle, 0x0100, key, 0); }