CopyIcon function Null safety user32

int CopyIcon(
  1. int hIcon
)

Copies the specified icon from another module to the current module.

HICON CopyIcon(
  HICON hIcon
);

Implementation

int CopyIcon(int hIcon) {
  final _CopyIcon = _user32.lookupFunction<IntPtr Function(IntPtr hIcon),
      int Function(int hIcon)>('CopyIcon');
  return _CopyIcon(hIcon);
}