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