views:

184

answers:

1

Hi I am developing 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#.

Any help would be appreciated. Thanx in advance

A: 

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.

BlueRaja - Danny Pflughoeft
I think ankit-net is not even knowing, which keys he wants to access ...
MartinStettner
I have the admin permission but i donot know which registrykey should i use?
max_dev