This function destroys an icon and frees any memory the icon occupied.
BOOL DestroyIcon( HICON hIcon )
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.
This function may be called on the icon handle returned from LoadImage or LoadIcon. The icon handle is invalid after calling DestroyIcon.
LoadIcon
origin.h