License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

Title: "SHGetFileInfo" with "SHGFI_SYSICONINDEX" flag doesn't work if called many times ?#%@!

I need to access & store the system image list for many times in my application. So i have called a "SHGetFileInfo" function and attached that handle to a CImageList object. I got the expected results till fourth time I called "SHGetFileInfo" function. But after that, "SHGetFileInfo" returned a system image list handle which had no icons in it !!!
*** What could be the reason?
*** Is there any alternative?

Hi,
Is it possbile to select multiple files with different extensions, I do not want all the files to be selected, but only files with certain extension.
For e.g. I would like to search recursively in a parent directory for "*.txt, *.bmp, *.doc, *.xls" files in one shot.