SetParent function Null safety user32

int SetParent (
  1. int hWndChild,
  2. int hWndNewParent
)

Changes the parent window of the specified child window.

HWND SetParent(
  HWND hWndChild,
  HWND hWndNewParent
);

Implementation

int SetParent(int hWndChild, int hWndNewParent) {
  final _SetParent = _user32.lookupFunction<
      IntPtr Function(IntPtr hWndChild, IntPtr hWndNewParent),
      int Function(int hWndChild, int hWndNewParent)>('SetParent');
  return _SetParent(hWndChild, hWndNewParent);
}