Partager via


Erasing the Object Store (Windows Embedded CE 6.0)

1/5/2010

The object store for Windows Embedded 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

Tasks

Completing an OAL