C#中 读取注册表的方法我已经知道的但是
HKey_Current_User是HKey_Users结构中某些键的一个别名
直接读的话 比如
RegistryKey theKey = Registry.CurrentUser.OpenSubKey(@"Software");
就没有问题
RegistryKey theKey = Registry.CurrentUser.OpenSubKey(@"Software\foobar");
这样的话 theKey就变成了null...然而事实上 Software下面是有foobar的所以 请问用什么办法可以把HKEY_CURRENT_USER下内容读出来呢?谢谢
HKey_Current_User是HKey_Users结构中某些键的一个别名
直接读的话 比如
RegistryKey theKey = Registry.CurrentUser.OpenSubKey(@"Software");
就没有问题
RegistryKey theKey = Registry.CurrentUser.OpenSubKey(@"Software\foobar");
这样的话 theKey就变成了null...然而事实上 Software下面是有foobar的所以 请问用什么办法可以把HKEY_CURRENT_USER下内容读出来呢?谢谢
http://blog.csdn.net/chengking/archive/2005/10/29/519087.aspx
但是没有看懂解决方法http://blog.csdn.net/OpenSchema/archive/2004/11/23/191793.aspx非常感谢上面的朋友们 可是问题没有解决还有朋友能帮忙么 谢谢!