End User Support:Operating Systems
Understanding
The Registry
Editing the registry is not as hard as you might think, but you need to understand
what you're doing, and it's essential to make a backup before you make any
changes so that you can back them out if necessary.
By Mike Lewis
P
ut simply, the Windows registry
The registry has several advantages
registry is spread over a series of files,
is a central repository of infor
over INI files. Because the information
sometimes called hives.
mation about all aspects of the
is centralised, it is easier for applica
SYSTEM.DAT and USER.DAT are
computer in particular, its hardware,
tions to access it. It is more hierarchical
usually held in the Windows directory.
operating system, applications and us
than INI files, and so better suited for
However, it is also possible to place
ers. It can be accessed and updated
storing large amounts of structured
USER.DAT in the user's login direc
under software control and also di
data. It is also free of the size limita
tory on a network, thus allowing the
rectly by users.
tions which affect INI files (although
user to log in at other workstations. In
The registry first appeared in Win
there is still a maximum total registry
NT, the hive files are located in the
dows 3.1. In that system it was a single
size limit).
SYSTEM32\CONFIG directory, which
file, called REG.DAT, and was mainly
is off the Windows directory.
used to store information about OLE
Storage
objects. Most other configuration data
Architecture
was held in various INI files, of which
Although the registry is usually
WIN.INI and SYSTEM.INI were the
considered to be a single entity, its con
When you view the registry in the
most important.
tents are in fact stored in more than one
Microsoft Registry Editor its hierarchi
The modern registry, as found in
physical file. In Windows 9x, there are
cal nature becomes obvious. (To
Windows 9x and NT, brings together
two such files: SYSTEM.DAT and
launch the editor, run REGEDIT.EXE
all the information that was previously
USER.DAT. These hold computer spe
from the Start/Run menu. I'll describe
held in REG.DAT and the separate INI
cific and user specific information re
it in more detail later in the article.) The
files.
spectively. In Windows NT, the
editor presents an Explorer like view
of the registry, with a tree in the left
pane and data in the right (see Figure
1).
The registry tree is divided into six
broad sections (five in NT). These sec
tions, which all have names beginning
with HKEY_, are called root keys or
top level keys (see Figure 2). Each root
key contains sub keys, which might in
turn contain further sub keys and so
on. The lowest level keys along a given
branch are called values.
Taking a hard disk as an analogy,
keys are like directories and values are
like files. Keys and values both hold
data, which can either be binary values
or ASCII strings.
Each item of data has an associated
name. As a minimum, each key and
value holds a single data item, named
Default. The data and names are dis
Figure 1 The Microsoft Registry Editor shows the registry's
played in the right pane of the editor,
hierarchical structure.
Update 127 (May 1999) page 5
File: E1209.1
PC Support Advisor
Next page >
New! The best sites for quality inkjet printer cartridges and the best sites for cheap inkjet cartridges