/// <summary> /// Initializes a new Boot Configuration Database /// </summary> /// <param name="root">The registry key at the root of the database</param> /// <returns>The BCD store</returns> public static Store Initialize(RegistryKey root) { RegistryKey descKey = root.CreateSubKey("Description"); descKey.SetValue("KeyName", "BCD00000001"); root.CreateSubKey("Objects"); return new Store(root); }
public FileSystemRegistryStorage(RegistryKey key) { _rootKey = key; }
/// <summary> /// Initializes a new instance of the Store class. /// </summary> /// <param name="key">The registry key that is the root of the configuration database</param> public Store(RegistryKey key) { _store = new FileSystemRegistryStorage(key); }