GetActiveWindow function Null safety user32

int GetActiveWindow()

Retrieves the window handle to the active window attached to the calling thread's message queue.

HWND GetActiveWindow();

Implementation

int GetActiveWindow() {
  final _GetActiveWindow = _user32
      .lookupFunction<IntPtr Function(), int Function()>('GetActiveWindow');
  return _GetActiveWindow();
}