GetWindow function Null safety user32

int GetWindow(
  1. int hWnd,
  2. int uCmd

Retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window.

HWND GetWindow(
  HWND hWnd,
  UINT uCmd


int GetWindow(int hWnd, int uCmd) {
  final _GetWindow = _user32.lookupFunction<
      IntPtr Function(IntPtr hWnd, Uint32 uCmd),
      int Function(int hWnd, int uCmd)>('GetWindow');
  return _GetWindow(hWnd, uCmd);