ChangeDetector.DetectorUtilitiesRegistry.DoRegistrySnapshotHive C# (CSharp) Method

DoRegistrySnapshotHive() private static method

Base method to start doing snapshots of a hive.
private static DoRegistrySnapshotHive ( RegistryHive hive ) : LinkedList
hive RegistryHive The hive to make a snapshot of.
return LinkedList
        private static LinkedList<SnapshotRegistryItem> DoRegistrySnapshotHive(RegistryHive hive)
        {
            LinkedList<SnapshotRegistryItem> results = new LinkedList<SnapshotRegistryItem>();

            if (_isWin64)
            {
                using (RegistryKey currentProjectedKey = RegistryKey.OpenBaseKey(hive, RegistryView.Registry64))
                {
                    DoRegistrySnapshotKey(currentProjectedKey, RegistryView.Registry64, results);
                }
            }

            using (RegistryKey currentProjectedKey = RegistryKey.OpenBaseKey(hive, RegistryView.Registry32))
            {
                DoRegistrySnapshotKey(currentProjectedKey, RegistryView.Registry32, results);
            }

            return results;
        }