如何获取文件类型?
我想知道如何获取文件类型。例如*.txt为文本文档。
用SHGetFileInfo可否实现,请高手指点
问题点数:100、回复次数:2Top
1 楼2ndboy(贱男春)回复于 2002-04-15 11:37:46 得分 50
可以
uFlags 用 SHGFI_TYPENAMETop
2 楼LegerWu(Legerwu_cn)回复于 2002-04-15 11:42:37 得分 50
uFlags用SHGFI_TYPENAME项:
Retrieve the string that describes the file's type. The string is copied to the szTypeName member of the structure specified in psfi.
你可以参考该函数的说明.Top




