Is there any way to can get the MIME Type in C++ given a file extension?
I have read about HKEY_CLASSES_ROOT, but I honestly have no idea of how to use it.
What I want is having as input:
string extension=".pdf";
string extension2=".avi";
Get as output:
string mimeType="application/pdf";
string mimeType2="video/x-msvideo";
I know I could do this by myself, but I guess there is some work already done in here.
Thanks a lot