3 wxString GetMIME(wxString FilenameInc){
12 unsigned long Buffersize;
13 FindMimeFromData(NULL, NULL, , , NULL, FMFD_DEFAULT, , 0);*/
20 magic_t MagicCookie = magic_open(MAGIC_MIME);
21 magic_setflags(MagicCookie, MAGIC_MIME_TYPE);
25 wxMessageBox(_("An error occured with the support library for getting the picture/audio type."), _("Error opening picture/audio file"), wxICON_ERROR);
30 if (magic_load(MagicCookie, NULL) != 0) {
32 wxMessageBox(_("An error occured whilst determining the picture/audio type."), _("Error opening picture/audio file"), wxICON_ERROR);
37 MIMEType = magic_file(MagicCookie, FilenameInc.mb_str());
38 MIMEResult = wxString::FromUTF8(MIMEType);
39 magic_close(MagicCookie);