SHGetFileInfoを使う
1 2 3 4 5 6 7 8 9 10 11 |
SHFILEINFO sfi = { 0 }; if (0 == SHGetFileInfo(strFullPath_, NULL, &sfi, sizeof(sfi), SHGFI_TYPENAME)) { // Error DWORD dwLE = GetLastError(); } strTypeName_ = sfi.szTypeName; |
SHGetFileInfoを使う
1 2 3 4 5 6 7 8 9 10 11 |
SHFILEINFO sfi = { 0 }; if (0 == SHGetFileInfo(strFullPath_, NULL, &sfi, sizeof(sfi), SHGFI_TYPENAME)) { // Error DWORD dwLE = GetLastError(); } strTypeName_ = sfi.szTypeName; |