SetActiveWindow function Null safety user32

int SetActiveWindow(
  1. int hWnd
)

Activates a window. The window must be attached to the calling thread's message queue.

HWND SetActiveWindow(
  HWND hWnd
);

Implementation

int SetActiveWindow(int hWnd) {
  final _SetActiveWindow = _user32.lookupFunction<IntPtr Function(IntPtr hWnd),
      int Function(int hWnd)>('SetActiveWindow');
  return _SetActiveWindow(hWnd);
}