UINT GetDriveTypeEx(LPCTSTR lpszFileName)

{

TCHAR tszVolumePathName[MAX_PATH];

UINT unRet = DRIVE_UNKNOWN;


if (GetVolumePathName(lpszFileName, tszVolumePathName, MAX_PATH))

{

unRet = GetDriveType(tszVolumePathName);

}

return unRet;

}

Posted by 띠깜
,