public static extern int GetWindowPlacement(IntPtr hWnd, ref WINDOWPLACEMENT wp); [DllImport("User32.dll", CharSet=CharSet.Auto)]