开发者

How to get Registry error for file association, file/path references, program shortcut in C#

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜