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,
) {
resolveGetLastError();
final result_ = _SetWindowPlacement(hWnd, lpwndpl);
return .new(value: result_ != FALSE, error: GetLastError());
}