determine if drive is removable (flash or HDD) knowing only the drive letter
I am trying to determine if a file is on a local drive. I found GetDriveType() WINAPI which retrieves the drive type. However reading the description of the return values it seems, and thats how I understand it, that it retrieves a flash drive as FIXED which is not what I want. Its working fine on local drives: bool IsDriveRemovableOrRemote(CString driveRoot) { UINT driveType = GetDriveType(driveRoot); return (DRIVE_REMOVABLE == driveType || DRIVE_CDROM == driveType || DRIVE_NO_ROOT_DIR == driveType || DRIVE_REMOTE == driveType); } I don't have a flash/external drive to test ATM but I would