IMPORTANT
This article holds information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe.
Introduction
The utility lets you to change the drive name which Windows 2000, NT and Windows XP have assigned. Although one can change the drive letter by editing registry, inappropriate change made in the registry may lead you to reinstalling the OS!!! This program safely changes the drive letter, though some safety precautions must be handled.
The utility also includes colored progress control which totally changes the traditional appearance of progress bar.
Users Manual
In order to execute the program, we have to select the existing drive letter and the drive letter to which we need to change. Then click �Apply� button to apply new settings. After applying settings, the message box is popped out requesting to restart the computer. We can restart the computer later by selecting �No� from the message box. The Progress button invokes the progress bar color change module and it does not changes any settings in the Registry.
Safety Precautions
In this program, we can�t change the drive letter �c:�, cause the OS loads many software referring the path �C:\ProgramFiles\.....� from the registry; so if we change the drive letter which contains the installed software, we will be unable to execute the software.
The setting changed needs to restart the computer in order to take effect, so, save all the files before you execute it, though you can restart later by selecting �No� from the message box.
Change Drive Name Module
The changes have been made on the HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices. The volume partition data is first copied to a dummy variable and another value name is created with the new drive letter, and the data is copied to the value. Eventually, the first drive value name is deleted.
The partition table, a 64-byte data structure used to identify the type and location of partitions on a hard disk, conforms to a standard layout independent of the operating system. When the OS analyses the partition using the partition volume data, the drive name we have changed comes in contact, then the OS changes the drive letter to the corresponding partition table data.
- The documentation is included in the source code for better understanding.
- To execute the module successfully, login user must have administrator privileges.
Change Progress Bar Color Module
The progress bar shown here serves for dummy purpose. The traditional progress bar color has been changed. We can apply almost all colors to our progress bar control. This is archived by ::SendMessage
command.
The COLORREF
, lParam
values can be changed to have other colors. Similarly the value of COLORREF
can be constantly varied to have a smooth effect on the progress control.