GetMouseMovePointsEx function Null safety user32

int GetMouseMovePointsEx (
  1. int cbSize,
  2. Pointer<MOUSEMOVEPOINT> lppt,
  3. Pointer<MOUSEMOVEPOINT> lpptBuf,
  4. int nBufPoints,
  5. int resolution
)

Retrieves a history of up to 64 previous coordinates of the mouse or pen.

int GetMouseMovePointsEx(
  UINT             cbSize,
  LPMOUSEMOVEPOINT lppt,
  LPMOUSEMOVEPOINT lpptBuf,
  int              nBufPoints,
  DWORD            resolution
);

Implementation

int GetMouseMovePointsEx(int cbSize, Pointer<MOUSEMOVEPOINT> lppt,
    Pointer<MOUSEMOVEPOINT> lpptBuf, int nBufPoints, int resolution) {
  final _GetMouseMovePointsEx = _user32.lookupFunction<
      Int32 Function(Uint32 cbSize, Pointer<MOUSEMOVEPOINT> lppt,
          Pointer<MOUSEMOVEPOINT> lpptBuf, Int32 nBufPoints, Uint32 resolution),
      int Function(
          int cbSize,
          Pointer<MOUSEMOVEPOINT> lppt,
          Pointer<MOUSEMOVEPOINT> lpptBuf,
          int nBufPoints,
          int resolution)>('GetMouseMovePointsEx');
  return _GetMouseMovePointsEx(cbSize, lppt, lpptBuf, nBufPoints, resolution);
}