OpenIcon function user32

Win32Result<bool> OpenIcon(
  1. HWND hWnd
)

Restores a minimized (iconic) window to its previous size and position; it then activates the window.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-openicon.

Implementation

Win32Result<bool> OpenIcon(HWND hWnd) {
  resolveGetLastError();
  final result_ = _OpenIcon(hWnd);
  return .new(value: result_ != FALSE, error: GetLastError());
}