The ImageList_Destroy function destroys an image list.
BOOL ImageList_Destroy(
HIMAGELIST himl
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.