GetCapture function Null safety user32

int GetCapture ()

Retrieves a handle to the window (if any) that has captured the mouse. Only one window at a time can capture the mouse; this window receives mouse input whether or not the cursor is within its borders.

HWND GetCapture();


int GetCapture() {
  final _GetCapture =
      _user32.lookupFunction<IntPtr Function(), int Function()>('GetCapture');
  return _GetCapture();