GetWindowInfo function Null safety user32

int GetWindowInfo(
  1. int hwnd,
  2. Pointer<WINDOWINFO> pwi
)

Retrieves information about the specified window.

BOOL GetWindowInfo(
  HWND hwnd,
  PWINDOWINFO pwi
);

Implementation

int GetWindowInfo(int hwnd, Pointer<WINDOWINFO> pwi) {
  final _GetWindowInfo = _user32.lookupFunction<
      Int32 Function(IntPtr hwnd, Pointer<WINDOWINFO> pwi),
      int Function(int hwnd, Pointer<WINDOWINFO> pwi)>('GetWindowInfo');
  return _GetWindowInfo(hwnd, pwi);
}