I'm writing a program for my workplace and because we work on computers damaged by hard drives we sometimes need to work with their registries before they'll boot.
Most notably, we're trying to fix the 0x7b error that stems from the Registry Hive that controls the default Hard disk drivers being damaged and the computer wont boot.
Microsoft has a Knowledge Base entry on how to do it manually, but we want to automate it. That being said, what's required is that I have to edit the registry hive on a different hard drive.
How can I modify the Registry Hive that is located on a different Hard drive with C#? The other hard drive will contain a complete OS, but will not be currently running.