开发者

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

开发者 https://www.devze.com 2022-12-16 14:47 出处:网络
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

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

精彩评论

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

关注公众号