Persisting Data with the RAM-Based Registry (Windows CE 5.0)
You can persist the registry data of your OS with the RAM-based registry when the RAM, which contains the object store, is not being powered. With the RAM not powered, you have additional protection against the possibility of invalid data configurations. The preferred method for persisting registry data is to use the hive-based registry. For more information, see Persisting Data with the Hive-Based Registry.
Additional methods for persisting data with the RAM-based registry using the OAL are also available. For more information, see Data Persistence with the RAM-based Registry Using the OAL.
Before you can persist the registry data of you OS, you must already have created, built, and downloaded a OS image to your target device. For more information, see How to Use the IDE to Create, Customize, and Build a Run-Time Image.
To persist data with the RAM-based registry
Copy the Oemregistry sample to your OS. For example, copy the %\SystemRoot%\Public\Common\Oak\Drivers\FSD\Oemfs folder to your platform.
Filesys.exe attempts to load the Oemregistry.dll file when the registry is initialized. The Oemregistry.dll file must be stored in ROM and should not be stored on external media.
Modify the source code for the OEM registry sample to export the ReadRegData, WriteRegData and RegistryOperation functions.
To add persistent password support, modify the source code for the OEM registry sample to export the ReadGenericData, and WriteGenericData functions.
Initialize the RAM-based registry for your OS.
For more information about performing this step, see Initializing the RAM-based Registry.
See Also
Persisting Data with the Hive-Based Registry |How to Use the IDE to Create, Customize, and Build a Run-Time Image | RAM-Based Registry | Data Persistence with the RAM-based Registry Using the OAL
Send Feedback on this topic to the authors