How to detect drive letters which are assigned twice?
most of what you want can be done with FindFirstVolume
and its friends (the example here covers everything), to get the type, you would use GetDriveType
, then finally SetVolumeMountPoint
will rename a device drive letter.