public static bool GetWindowPlacement(IntPtr hWnd, out WindowPlacement placement) { placement = new WindowPlacement(); placement.Length = Marshal.SizeOf(typeof(WindowPlacement)); return(InternalGetWindowPlacement(hWnd, ref placement)); }
private static extern bool InternalGetWindowPlacement(IntPtr hWnd, ref WindowPlacement lpwndpl);