Platform SDK: Files and I/O

Persistent Assignment of Drive Letters

You can assign a drive letter (for example, x:\) to a local volume using SetVolumeMountPoint, provided there is no volume already assigned to that drive letter. If the local volume already has a drive letter then SetVolumeMountPoint will fail. To handle this, first delete the drive letter using DeleteVolumeMountPoint.

Windows 2000: Allows at most one drive letter per volume, so you cannot have C:\ and F:\ pointing to the same volume.

Caution  Deleting an existing drive letter and assigning a new one may break existing paths, such as those in desktop shortcuts. It may also break the path to the program making the drive letter changes. With Windows 2000's virtual memory management, this may break the application, leaving the system in an unstable and possibly unusable state. It is the program designer's responsibility to avoid such potential catastrophes.