private static Rect GetWindowRect(IntPtr Ptr) { U32Rect R = new U32Rect(); _ = Win32Calls.GetWindowRect(Ptr, ref R); return(new Rect(new System.Windows.Point(R.Left, R.Top), new System.Windows.Point(R.Right, R.Bottom))); }
public static extern bool GetWindowRect(IntPtr hwnd, ref U32Rect rectangle);