Flushing the Registry

Windows CE 3.0

Some Windows CE platforms include the RegFlushKey function. RegFlushKey is an OEM-implemented function that attempts to flush the entire registry to a platform-supported storage. If it is available, you should call RegFlushKey after each major change or group of changes to your registry. Depending on how the function is implemented, RegFlushKey can require a great deal of system resources. So, while RegFlushKey might be an effective way to back up the registry, calling the function multiple times for minor changes might impede the performance of your application.