The ImageList_GetImageCount function retrieves the number of images in an image list.
int ImageList_GetImageCount(;
HIMAGELIST himl
);
The ImageList_GetImageCount function returns the number of images.