getting filetype description from _extension_
-
Hi I wan't to be able to get a filetypes icon, preferably the position in the system image list, and the description string. Is there any API for this? OBS! I know that I can use SHGetFileInfo, but then I must supply filename. I need it on extension basis. I prefer to be anonymous.
-
Hi I wan't to be able to get a filetypes icon, preferably the position in the system image list, and the description string. Is there any API for this? OBS! I know that I can use SHGetFileInfo, but then I must supply filename. I need it on extension basis. I prefer to be anonymous.
I think you can still use the SHGetFileInfo, but you have to specify the GFI_USEFILEATTRIBUTES flag in the uFlags argument, this way the function does not access the specified file, so you can pass a bogus file name with the extension you want. If this does not work, you can still look for all the informations you want in the registry...... Good luck! Rui Lopes
-
I think you can still use the SHGetFileInfo, but you have to specify the GFI_USEFILEATTRIBUTES flag in the uFlags argument, this way the function does not access the specified file, so you can pass a bogus file name with the extension you want. If this does not work, you can still look for all the informations you want in the registry...... Good luck! Rui Lopes