GetTopWindow function Null safety user32

int GetTopWindow(
  1. int hWnd

Examines the Z order of the child windows associated with the specified parent window and retrieves a handle to the child window at the top of the Z order.

HWND GetTopWindow(
  HWND hWnd


int GetTopWindow(int hWnd) {
  final _GetTopWindow = _user32.lookupFunction<IntPtr Function(IntPtr hWnd),
      int Function(int hWnd)>('GetTopWindow');
  return _GetTopWindow(hWnd);