Documente Academic
Documente Profesional
Documente Cultură
This article describes the registry. This article also includes information about how to
back up the registry, how to edit the registry, and lists references for more information.
MORE INFORMATION
Description of the registry
The Microsoft Computer Dictionary, Fifth Edition, defines the registry as:
A central hierarchical database used in Microsoft Windows 98, Windows CE, Windows
NT, and Windows 2000 used to store information that is necessary to configure the
system for one or more users, applications and hardware devices.
The Registry contains information that Windows continually references during operation,
such as profiles for each user, the applications installed on the computer and the types of
documents that each can create, property sheet settings for folders and application icons,
what hardware exists on the system, and the ports that are being used.
The Registry replaces most of the text-based .ini files that are used in Windows 3.x and
MS-DOS configuration files, such as the Autoexec.bat and Config.sys. Although the
Registry is common to several Windows operating systems, there are some differences
among them.A registry hive is a group of keys, subkeys, and values in the registry that
has a set of supporting files that contain backups of its data. The supporting files for all
hives except HKEY_CURRENT_USER are in the %SystemRoot%\System32\Config
folder on Windows NT 4.0, Windows 2000, Windows XP, Windows Server 2003, and
Windows Vista. The supporting files for HKEY_CURRENT_USER are in the
%SystemRoot%\Profiles\Username folder. The file name extensions of the files in these
folders indicate the type of data that they contain. Also, the lack of an extension may
sometimes indicate the type of data that they contain.
In Windows 98, the registry files are named User.dat and System.dat. In Windows
Millennium Edition, the registry files are named Classes.dat, User.dat, and System.dat.
Note Security features in Windows NT, Windows 2000, Windows XP, Windows Server
2003, and Windows Vista let an administrator control access to registry keys.
The following table lists the predefined keys that are used by the system. The maximum
size of a key name is 255 characters.
Note The registry in 64-bit versions of Windows XP, Windows Server 2003, and
Windows Vista is divided into 32-bit and 64-bit keys. Many of the 32-bit keys have the
same names as their 64-bit counterparts, and vice versa. The default 64-bit version of
Registry Editor that is included with 64-bit versions of Windows XP, Windows Server
2003, and Windows Vista displays the 32-bit keys under the following node:
HKEY_LOCAL_MACHINE\Software\WOW6432NodeFor more information about how
to view the registry on 64-Bit versions of Windows, click the following article number to
view the article in the Microsoft Knowledge Base:
305097 (http://support.microsoft.com/kb/305097/) How to view the system registry by
using 64-bit versions of Windows
The following table lists the data types that are currently defined and that are used by
Windows. The maximum size of a value name is as follows:
• Windows Server 2003, Windows XP, and Windows Vista: 16,383 characters
• Windows 2000: 260 ANSI characters or 16,383 Unicode characters
• Windows Millennium Edition/Windows 98/Windows 95: 255 characters
Long values (more than 2,048 bytes) must be stored as files with the file names stored in
the registry. This helps the registry perform efficiently. The maximum size of a value is as
follows:
Windows NT 4.0/Windows 2000/Windows XP/Windows Server 2003/Windows Vista:
•
Available memory
• Windows Millennium Edition/Windows 98/Windows 95: 16,300 bytes
Note There is a 64K limit for the total size of all values of a key.
http://msdn2.microsoft.com/en-us/library/293bt9hh.aspxp
(http://msdn2.microsoft.com/en-us/library/293bt9hh.aspx)
RegRead method
http://msdn2.microsoft.com/en-us/library/x05fawxd.aspx
(http://msdn2.microsoft.com/en-us/library/x05fawxd.aspx)
RegWrite method
http://msdn2.microsoft.com/en-us/library/yfdfhz1b (http://msdn2.microsoft.com/en-
us/library/yfdfhz1b)