private static extern bool GetWindowPlacement(IntPtr hWnd, out WINDOWPLACEMENT lpwndpl);
public static void SetPlacement(this Window window, WINDOWPLACEMENT placement) { WindowPlacement.SetPlacement(new WindowInteropHelper(window).Handle, placement); }
private static extern bool SetWindowPlacement(IntPtr hWnd, [In] ref WINDOWPLACEMENT lpwndpl);