DestroyIcon function Null safety user32

int DestroyIcon (
  1. int hIcon
)

Destroys an icon and frees any memory the icon occupied.

BOOL DestroyIcon(
  HICON hIcon
);

Implementation

int DestroyIcon(int hIcon) {
  final _DestroyIcon = _user32.lookupFunction<Int32 Function(IntPtr hIcon),
      int Function(int hIcon)>('DestroyIcon');
  return _DestroyIcon(hIcon);
}