SetForegroundWindow function user32

bool SetForegroundWindow(
  1. HWND hWnd
)

Brings the thread that created the specified window into the foreground and activates the window.

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

Implementation

@pragma('vm:prefer-inline')
bool SetForegroundWindow(HWND hWnd) => _SetForegroundWindow(hWnd) != FALSE;