private static extern bool GetWindowRect(IntPtr hwnd, out RECT lpRect);
public static bool TryGetWindowRect(IntPtr hWnd, out RECT rect) { return GetWindowRect(hWnd, out rect); }