public static extern bool GetWindowPlacement(IntPtr hwnd, ref WINDOWPLACEMENT placement);
/// <summary> /// Retrieves the show state and the restored, minimized, and maximized positions of the specified window. /// </summary> /// <param name="hwnd">A handle to the window.</param> /// <param name="placement">The WINDOWPLACEMENT structure that receives the show state and position information. Before calling GetWindowPlacement, set the length member to sizeof(WINDOWPLACEMENT).</param> /// <returns></returns> public static bool GetWindowPlacement(IntPtr hwnd, ref WINDOWPLACEMENT placement) { return NativeMethods.GetWindowPlacement(hwnd, ref placement); }