Interop.Shell32 1.2版本支持xp 1.0版本支持win7
string dirName = System.IO.Path.GetDirectoryName(FileName);
string SongName = System.IO.Path.GetFileName(FileName);//获得歌曲名称
ShellClass sh = new ShellClass();
Folder dir = sh.NameSpace(dirName);
FolderItem item = dir.ParseName(SongName);
string win7Time = dir.GetDetailsOf(item, 27); //win7 win10
string xpTime = dir.GetDetailsOf(item, 21); //xp
1