The windows ce registry – Rockwell Automation 2727-MRSDK MobileView Terminals Software Development Kit User Manual User Manual
Page 11
Publication 2727-UM004B-EN-P - February 2004
Introduction to the MobileView SDK 1-5
The operating system then attempts to find the primary persistent
registry file. If this file is not present, it attempts to find the backup
persistent registry file. If no persistent registry file is found, system
boot continues with the default registry already in memory.
If a persistent registry file is found, the system merges the default
operating system registry and the saved persistent registry; saved
persistent registry takes precedence.
“Warm Boot”
After the registry merge, a “warm boot” is begun. Control passes to the
operating system kernel, which can now use the registry image to
initialize various subsystems. The file system drivers, the graphical
subsystem drivers, serial, network, and other device drivers are loaded
and initialized.
The Windows CE Registry
The Windows CE Registry contains application and system
configuration data. The Control Panel provides the user interfaces for
managing the system settings that are configurable by the user.
Applications access the Registry via the Win32 API.
The default Registry resides in the operating system image in the flash
device. During runtime, the Registry is loaded into and resides in RAM
in the Object Store (RAMDISK).
When the system is powered-on, the registry is restored from Flash
Memory to DRAM during a “cold boot”.
The registry is only saved by manual operations. The user can execute
the "\windows\regflush.exe" program or call the FlushRegistry()
command from an application.
The operating system boot process is responsible for merging the
default operating system Registry keys with the keys from the
persistent Registry. If the same keys exist, preference is given to the
persistent registry file. A few default keys are exceptions to this rule
and are bypassed during the merge; e.g. the O/S version number is
acquired from the O/S image.
The process of merging default and persistent registry information
allows operating system upgrades to add new registry keys and values
and have these be used in addition to any saved registry state. Since
the saved registry information has precedence, users’ saved registry