Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Windows system registry is a database containing the settings of the operating system (hardware, software, users). When system parameters of the operating system are changed, the system registry is updated.

The registry can be edited by the regedit.exe program included in the standard set of service programs in Windows. The information is stored in two hidden files in a Windows folder: system.dat and user.dat. The registry is a hierarchical tree structure, the branches of which constitute the keys that contain values or subkeys. The registry has six main branches described in the table.

Branch name

Description

HKEY_CLASSES_ROOT

Contains the information of software configuration, including the links from file extensions to programs, drag-and-drop parameters, printer settings and COM port settings.

HKEY_CURRENT_USER

Contains user settings of the system. This section is created and populated from the HKEY_USERS section upon user logon.

HKEY_LOCAL_MACHINE

Contains the parameters of the computer, its drivers and other hardware. The data in this section is shared by all users of the computer.

HKEY_USERS

Contains the information about all users registered on the computer. There are two types of parameters – shared by all users, and specific to each user.

HKEY_CURRENT_CONFIG

Contains the information about current hardware configuration.

HKEY_DYN_DATA

Points to a subsection in the HKEY_LOCAL_MACHINE section related to Plug and Play devices. This section changes upon adding or removing devices to or from the computer.

 The branch structure is visually similar to the structure of the user folders, allowing nested branches. Figure shows the main elements of the registry.

 

  1. Branches;
  2. Keys;
  3. Subkeys;
  4. Parameters;


Each parameter has three components: name, type and value. A key can have only one parameter with no name, which serves as a default value of the key. It is recommended to assign meaningful names to parameters, indicating its purpose.

The values in the registry can be of particular types. The most commonly used types are described in the table.

Data type

Description

Purpose

REG_DWORD

4 bytes in hexadecimal or decimal format.

Many service or driver parameters are of this type. Example: 0x00000240(576) — decimal value is given in parenthesis.

REG_BINARY

Binary data of an arbitrary form. Maximum length – 16 bytes.

Most data on hardware components is stored as binary. In the regedit.exe window it is displayed in hexadecimal format, for example 01 00 00 00.

REG_SZ

A string ending with a null symbol.

Example: C:\Windows

REG_MULTI_SZ

Multi-line text. An array of strings ending with a null each. An array itself ends with two nulls.

Lists and other records in readable format are of this type. The records are separated by commas and other symbols in the editor.

REG_EXPAND_SZ

Data string of variable length ending with a null.

Undisclosed links to environment variables are of this type.

REG_FULL_RESOURCE
_DESCRIPTOR 

A sequence of nested arrays.

This type is designed for storing the list of device resources and drivers.

  • No labels