HI,
Windows provides descriptions for file extension such as “Control Panel Item” for .cpl files and “PowerISO File” for .daa files. Is there any way I can obtain this data in .NET ? Im using C# but can read all the other .NET languages. Also is there a way to obtain the default icon of the extensions as well ? Any help would be appreciated.
Thanks in advance
You can use the
SHGetFileInfoAPI to get that information. Here’s a wrapper method:(most of the constants aren’t actually used in that code, but I put them anyway in case you want to adapt the code to your specific needs)