DrawIcon function Null safety user32

int DrawIcon (
  1. int hDC,
  2. int X,
  3. int Y,
  4. int hIcon
)

Draws an icon or cursor into the specified device context.

BOOL DrawIcon(
  HDC   hDC,
  int   X,
  int   Y,
  HICON hIcon
);

Implementation

int DrawIcon(int hDC, int X, int Y, int hIcon) {
  final _DrawIcon = _user32.lookupFunction<
      Int32 Function(IntPtr hDC, Int32 X, Int32 Y, IntPtr hIcon),
      int Function(int hDC, int X, int Y, int hIcon)>('DrawIcon');
  return _DrawIcon(hDC, X, Y, hIcon);
}