CopyImage function Null safety user32

int CopyImage (
  1. int h,
  2. int type,
  3. int cx,
  4. int cy,
  5. int flags

Creates a new image (icon, cursor, or bitmap) and copies the attributes of the specified image to the new one. If necessary, the function stretches the bits to fit the desired size of the new image.

HANDLE CopyImage(
  UINT   type,
  int    cx,
  int    cy,
  UINT   flags


int CopyImage(int h, int type, int cx, int cy, int flags) {
  final _CopyImage = _user32.lookupFunction<
      IntPtr Function(IntPtr h, Uint32 type, Int32 cx, Int32 cy, Uint32 flags),
      int Function(int h, int type, int cx, int cy, int flags)>('CopyImage');
  return _CopyImage(h, type, cx, cy, flags);