public static extern bool GetWindowRect(IntPtr hWnd, ref RECT rect); [DllImport("User32.dll", CharSet=CharSet.Auto)]