SetWindowPlacement function user32
Sets the show state and the restored, minimized, and maximized positions of the specified window.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-setwindowplacement.
Implementation
Win32Result<bool> SetWindowPlacement(
HWND hWnd,
Pointer<WINDOWPLACEMENT> lpwndpl,
) {
final result_ = SetWindowPlacement_Wrapper(hWnd, lpwndpl);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}