SetPixel function Null safety gdi32

int SetPixel(
  1. int hdc,
  2. int x,
  3. int y,
  4. int color

The SetPixel function sets the pixel at the specified coordinates to the specified color.

  HDC      hdc,
  int      x,
  int      y,
  COLORREF color


int SetPixel(int hdc, int x, int y, int color) {
  final _SetPixel = _gdi32.lookupFunction<
      Uint32 Function(IntPtr hdc, Int32 x, Int32 y, Uint32 color),
      int Function(int hdc, int x, int y, int color)>('SetPixel');
  return _SetPixel(hdc, x, y, color);