Initializing the Object Store-based Registry

To initialize the registry, call OEMIoControl with IOCTL_HAL_GETREGSECUREKEYS.

To initialize an object store-based registry

  1. Load Default.fdf from the ROMFILES section of Config.bib.

    Delete any existing registry data before starting.

  2. Replace Default.fdf data if you support pReadRegistryFromOEM and the registry data is available.

    Loop calling pReadRegistryFromOEM until all the data is returned. Data is stored by calling pWriteRegistryToOEM when RegFlushKey is called. If retrieving the data fails, clean the registry and restore Default.fdf.

  3. Restore the registry with the file contents of Restore.fdf by calling RegRestoreFile. If this fails to restore, clean the registry and restore Default.fdf.

  4. Retry the OEM if pReadRegistryFromOEM is set. If this fails to restore the registry then clean the registry and restore Default.fdf.

  5. Call the OEM through OEMIoControl with the IOCTL IOCTL_HAL_INITREGISTRY.

See Also

Initializing the Registry

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.