How Windows NT Components Use the Registry

Under versions of Windows for MS-DOS, starting the system, connecting to the network, and running applications involves multiple configuration files with some form of synchronization between them. With Windows NT, the operating system stores and checks the configuration information at only one location—the Registry.

Figure 10.1 Data in the Windows NT Registry

The following figure shows how various Windows NT components and applications use the Registry. The numbered explanations below this illustration provide details.

Figure 10.2 How Registry information Is Used by Windows NT

The Registry is analogous to the .INI files used under Windows for MS-DOS, with each key in the Registry similar to a bracketed heading in an .INI file, and entries under the heading similar to values in the Registry. However, Registry keys can contain subkeys, while .INI files do not support nested headings. Registry values can also consist of executable code, rather than the simple strings representing values in .INI files. And individual preferences for multiple users of the same computer can be stored in the Registry, which is not possible with .INI files.

Although Microsoft discourages using .INI files in favor of using Registry entries, some applications (particularly 16-bit Windows-based applications) will continue using .INI files for the time being. Windows NT supports .INI files solely for compatibility with those applications and related tools (such as setup programs). Some form of the files AUTOEXEC.BAT and CONFIG.SYS also still exist to provide compatibility with applications created for MS-DOS and Windows 3.1. For details about how Windows NT uses such files in conjunction with the Registry, see Chapter 14, "Initialization Files and the Registry."