Would it be possible to extract the mimetype by importing shell32.dll in C#? Can anyone help me on this?
For example: for pdf it should retrieve -Adobe Acrobat Document
I could be able to extract using regkeys, but I’m looking for a way to extract using shell32.dll
It’s not really the MIME type but you can use this :
http://pinvoke.net/default.aspx/shell32/SHGetFileInfo.html
With SHGFI_TYPENAME in the uFlags parameter, it should return what you meant in your question. It didn’t try it, let us know.