|
Windows 95 registry
DOS and Windows 3.xEarly PC`s, before the advent of Windows, used only MS DOS as the operating system. MS DOS used a number of files to hold the data about how the PC should be configured. These include
When Windows came along, it was neccessary to add more files, for the information about the configuration of Windows itself. Windows 3.x versions therefore added the following files to the above list :-
It was neccessary to retain all the DOS configuration files for two reasons :-
In addition to all these .ini files, each Windows based application added its own .ini files, so it was quite possible to have 50 to 100 .ini files on a PC.
Windows 95Windows 95 adds even more files for its configuration :-
Windows 95 also stores part of its configuration data in RAM every time it is run. Note that these are in addition to all the previous DOS and Windows 3.x files - this is to ensure backward compatibility with previous generations of applications. The five DOS files are located in the C drive root directory. The four Windows 3.x files, and the two new Windows 95 files are located in the Windows directory.
The registryThe above two files, user.dat and system.dat, and the use of RAM, are the the method by which Windows 95 physically stores the configuration database within itself. In contrast, the registry is the name given to the logical construction of the configuration database within Windows 95. The registry is divided up into 3 sections - these can be thought as 3 logical directories, but are actually called "keys". These three sections are headed by three primary keys, which are called :-
These primary keys correspond to the files and RAM storage shown above :-
All these primary keys contain several subkeys, each of which in turn holds either a number of entries ( or "fields" in database terminology ), or else a further layer of subkeys, each holding a number of entries, or again, yet another layer of subkeys and more entries. This structure corresponds to a typical mainfolder / sub-folder / files type of tree structure which exists on any hard drive, and can be seen with Windows Explorer or Windows File manager - but in the case of the registry, the directories or folders, and the files do not exist as such, the whole thing is a logical representation of a physical database. The entries or fields have what the registry calls values, and these values can take a number of forms :-
Now it gets more complicatedWhen the registry was created, three more primary keys were introduced - but instead of them heading up three more sections, they are actually subsets of two of the existing primary keys.
The complete list of primary keys in the registry therefore looks like :-
Modifying the registryThere are several ways to modify the registry, but by far the easiest and safest way is to use the normal menu commands that Windows 95 provides, in order to allow customisation. So for example, by following the path via menu commands My computer/control panel/display/background/wallpaper/browse and selecting a file as wallpaper, the corresponding registry entry HKEY_USERS\DEFAULT\CONTROL PANEL\DESKTOP\wallpaper is modified and puts in for the value entitled wallpaper a text string which is the path set up as above. Also, the registry entry HKEY_CURRENT_USER\CONTROL PANEL\DESKTOP\wallpaper shows the same value. Note that if a named user was logged onto the PC, the HKEY_USERS path would show the user`s name instead of DEFAULT. Some of the values inside the registry cannot be altered using the normal menu driven commands. These include some access limitations that a system manager can impose on different users. Windows 95 provides a tool for this purpose, called the System Policy Editor, and it is found in an executable file called poledit.exe. When Windows 95 is loaded from CD, this file is not installed, but it can be found on the CD in \ADMIN\APPTOOLS\poledit.exe, and then copied into the C:\WINDOWS\ directory. Alternatively, it can be installed using Control panel/Add-remove. Another tool that is provided with Windows 95 is called the Registry Editor, and is an executable file called regedit.exe, which is found within the C:\WINDOWS\ directory. Be warned - this is a powerful and dangerous tool that allows direct modification of every registry value - modify the wrong thing, and instant disaster can occur. It does, however, present the registry in a two panel display similar to Windows Explorer, with the primary key and sub key structure in the left hand panel, and the actual values listed in the right hand panel. It is therefore an excellent aid to assist in visualising the registry logical structure. Finally, there are a number of commercial, shareware, and freeware programs available which also allow various forms of registry modification.
© 1998 Ron Turner Return to the index page
|
|