Get File Type Description

O

osmarjunior

Is there a way to get the Window's file type description:

....
".doc" "Microsoft Word Document"
".xls" "Microsoft Excel Document"
....

In the Windows Explorer (Menu Tools -> Options we can change these
types).
How can I access them in C# code?

Regards.
 
M

Mattias Sjögren

In the Windows Explorer (Menu Tools -> Options we can change these
types).
How can I access them in C# code?

Use the SHGetFileInfo function with SHGFI_TYPENAME. I'm sure google
can help you find sample code.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top