How to get TDataType (Mime type) of a file(转)

Hi,
Is there a simple way to get the hidden mime type of a media file. Say, I download a file file.mp3 renamed as myfile over bluetooth and save it as a local file. later i want to know if CDocumentHandler can handle the file by calling the function myDocHandler.CanHandle(TDataType type).
To do this, i need to know the MIME type of "myfile".
Is there a simple function lile TDataType GetMimeType(TDes &filename) ?
I would appreciate anyone who can help me..
regards & thanks
murali

 

Hi
Check RApaLsSession and its RecognizeData()-function.
yucca

posted @ 2010-08-05 14:22  冰岛  阅读(408)  评论(1编辑  收藏  举报