MapWindowPoints function Null safety user32

int MapWindowPoints (
  1. int hWndFrom,
  2. int hWndTo,
  3. Pointer<POINT> lpPoints,
  4. int cPoints
)

The MapWindowPoints function converts (maps) a set of points from a coordinate space relative to one window to a coordinate space relative to another window.

int MapWindowPoints(
  HWND    hWndFrom,
  HWND    hWndTo,
  LPPOINT lpPoints,
  UINT    cPoints
);

Implementation

int MapWindowPoints(
    int hWndFrom, int hWndTo, Pointer<POINT> lpPoints, int cPoints) {
  final _MapWindowPoints = _user32.lookupFunction<
      Int32 Function(IntPtr hWndFrom, IntPtr hWndTo, Pointer<POINT> lpPoints,
          Uint32 cPoints),
      int Function(int hWndFrom, int hWndTo, Pointer<POINT> lpPoints,
          int cPoints)>('MapWindowPoints');
  return _MapWindowPoints(hWndFrom, hWndTo, lpPoints, cPoints);
}