DragDetect function Null safety user32

int DragDetect(
  1. int hwnd,
  2. POINT pt

Captures the mouse and tracks its movement until the user releases the left button, presses the ESC key, or moves the mouse outside the drag rectangle around the specified point.

BOOL DragDetect(
  HWND  hwnd,
  POINT pt);


int DragDetect(int hwnd, POINT pt) {
  final _DragDetect = _user32.lookupFunction<
      Int32 Function(IntPtr hwnd, POINT pt),
      int Function(int hwnd, POINT pt)>('DragDetect');
  return _DragDetect(hwnd, pt);