I am developi开发者_C百科ng a registry cleaner and for that I have to find out registry error in the windows registry. If we talk about registry error in Shared dlls I get the registry error with the following code:
RegistryKey regKey = Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\SharedDLLs");
same thing I want to do in case of file association, file/path references,program shortcuts. I donot know which path should I use with OpenSubKey("") to get the registry error for those in C#.
Check that you have permission to access those keys - if you are running Vista or Windows 7, you will need administrator privileges to access them.
精彩评论