GetParent function Null safety user32

int GetParent (
  1. int hWnd
)

Retrieves a handle to the specified window's parent or owner.

HWND GetParent(
  HWND hWnd
);

Implementation

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