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;
}