public void Initialize()
 {
   var indexGenerator = new IndexGenerator();
   // Reserve the first 20 indices for static virtual keys.
   indexGenerator.ExcludedRanges.Add(new IndexRange(0, 20));
   // Reserved indices for registry rootkeys.
   indexGenerator.ExcludedRanges.Add(new IndexRange(0x80000000, 0x80000006));
   var engineRules = _dataSource.GetRegistryEngineRules();
   var knownKeys = new ObservableDictionary<uint, VirtualRegistryKey>();
   _dataSource.SynchronizeRegistryWith(knownKeys);
   _switch = new RegistrySwitch(indexGenerator, knownKeys, engineRules);
 }
Beispiel #2
0
        public void Initialize()
        {
            var indexGenerator = new IndexGenerator();

            // Reserve the first 20 indices for static virtual keys.
            indexGenerator.ExcludedRanges.Add(new IndexRange(0, 20));
            // Reserved indices for registry rootkeys.
            indexGenerator.ExcludedRanges.Add(new IndexRange(0x80000000, 0x80000006));
            var engineRules = _dataSource.GetRegistryEngineRules();
            var knownKeys   = new ObservableDictionary <uint, VirtualRegistryKey>();

            _dataSource.SynchronizeRegistryWith(knownKeys);
            _switch = new RegistrySwitch(indexGenerator, knownKeys, engineRules);
        }