Erasing the Object Store (Windows CE 5.0)
The object store for Windows CE is persistent across warm boots as long as the boot process does not cause other code that changes the contents of RAM, such as hardware initialization code, to get executed.
On occasion, you may want to completely erase the object store by triggering a cold reboot. For example, you may create a prototype that tests the cold system boot process.
While an application can call the SetCleanRebootFlag function to perform a cold boot, you can also implement the following procedure in the boot process.
To erase the object store during the boot process
Include the following code example in your implementation of the OEMInit function:
extern void NKForceCleanBoot(); NKForceCleanBoot();
Calling the NKForceCleanBoot function during OEMInit ensures that a cold boot of the object store occurs during the boot process.
See Also
Send Feedback on this topic to the authors