Microsoft.Win32.Registry.LocalMachine Field

Contains the configuration data for the local machine. This field reads the Windows registry base key HKEY_LOCAL_MACHINE.

Syntax

public static readonly RegistryKey LocalMachine

Remarks

LocalMachine contains five keys:

Hardware

Describes the physical hardware in the computer, the way device drivers use that hardware, and mappings and related data that link kernel-mode drivers with user-mode code. All data in this key is recreated each time the system is started. The Description subkey describes the actual computer hardware. The DeviceMap subkey contains miscellaneous data in formats specific to particular classes of drivers. The ResourceMap subkey describes which device drivers claim which hardware resources. The Windows NT Diagnostics program (Winmsdp.exe) can report on its contents in an easy-to-read form.

SAM

The directory services database of security information for user and group accounts, and for the domains in Windows 2000 Server (SAM is the Security Account Manager, known as the directory services database).

Security

Contains the local security policy, such as specific user rights. This key is used only by the Windows 2000 security subsystem.

Software

The per-computer software database. This key contains data about software installed on the local computer, along with various items of miscellaneous configuration data.

System

Controls system startup, device driver loading, Windows 2000 services, and operating system behavior.

By convention, if similar data exists under Registry.CurrentUser and under Registry.LocalMachine, the data in Registry.CurrentUser takes precedence. However, values in this key can also extend (rather than replace) data in Registry.LocalMachine. Also, some items (such as device driver loading entries) are meaningless if they occur outside of Registry.LocalMachine.

Requirements

Namespace: Microsoft.Win32
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0