Windows Registry
Windows Registry
Registry Hives
Name
Abbreviatio
n
Contents
HKEY_CLASSES_ROOT
HKCR
HKEY_CURRENT_USER
HKCU
HKEY_LOCAL_MACHINE
HKLM
HKEY_USERS
HKU
HKEY_CURRENT_CONFI
G
N/A
Beneath the hives are folders, or keys. Keys can also have subkeys, just as folders have subfolders. The name of the game
is organization.
Keys contain values. Every value has a name and data. Unlike the old inifiles, the data can be something other than text,
including numeric values and binary information. You can find several values in a single key, or a key can be empty or
contain only subkeys.
As with files and folders, values stored in the Registry are found by following apathname that gives the location of a specific
key or value. For example, the following pathname to the key gives the location where Adobe Acrobat Reader 8.0 is installed
on the computer:
HKCU\Software\Adobe\AcrobatReader\8.0\InstallPath
The abbreviation HKCU for HKEY_CURRENT_USER is used in the preceding line. Its followed by the subkeys Software,
Adobe, Acrobat Reader, 8.0, and, finally, InstallPath. In the InstallPath key is a value that holds data in the form of text. The
text is the pathname for the storage system location where Acrobat Reader 8.0 is installed.
Keys, like pathnames to files, can get long. Sometimes, a key name thats too long to fit on a single line must be wrapped,
such as
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow
This key contains a binary value that determines whether Windows displays a shadow on the mouse pointer. The line is too
long to fit on the page, so it wraps.
Incidentally, the CursorShadow key helps demonstrate a point that deserves emphasis: You can easily turn the mouse
pointer shadow on or off by using the Pointers tab in the Mouse Properties dialog box. You dont have to delve into the
Registry, nor is there any benefit to doing so.