SetWindowPlacement

[DllImport("user32.dll", SetLastError = true)]
public static extern bool SetWindowPlacement(
   IntPtr hWnd,
   [In] ref WINDOWPLACEMENT lpwndpl
);

Microsoft documentation: Link

Last updated