写入Windows 7 HKEY_CURRENT_USER \Software \ Mysoftoft \ Windows \ CurrentVersion \Explorer \ FileExts \.bmp \ Userseroice [英] writing to windows 7 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice

查看:215
本文介绍了写入Windows 7 HKEY_CURRENT_USER \Software \ Mysoftoft \ Windows \ CurrentVersion \Explorer \ FileExts \.bmp \ Userseroice的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。


$ b $我正在尝试写入HKEY_CURRENT_USER \Software \ Mysoftoft \ Windows \ CurrentVersion\Explorer \ FileExts \ .bmp \\ \\ userChoice在Windows 7中,并希望通过代码更改progid(vb.net)

,我能够读取此密钥但是当我写这个密钥时它会产生错误:

securityexception未处理,不允许请求注册表访问。

任何关于相同的帮助都会帮助full.i试图在互联网上找到解决方案,但没有帮助..

提前感谢:)

这是我的代码



My.Computer.Registry.SetValue(HKEY_CURRENT_USER \ Software\Microsoft \ Windows \ CurrentVersion \Explorer \ .FileExts\.bmp \ UserChoice,Progid,PBrush)

hello everyone

i am trying to write to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice in windows 7 and in that wanted to change progid through code(vb.net)
,i am able to read this key but when i am writing to this key its creating an error:
securityexception was unhandled,Requested registry access is not allowed.
Any help regarding the same would be help full.i tried to find solutions on internet but no help..
thanks in advance :)
here is my code

My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice", "Progid", "PBrush")

推荐答案

这是一个安全的事情,看看这篇文章,你应该得到你的答案: http://msdn.microsoft.com/en-us/library/system.security.permissions.registrypermission (v = vs.90).aspx [ ^ ]
it''s a security thing, take a look at this article and you should have your answer: http://msdn.microsoft.com/en-us/library/system.security.permissions.registrypermission(v=vs.90).aspx[^]


这篇关于写入Windows 7 HKEY_CURRENT_USER \Software \ Mysoftoft \ Windows \ CurrentVersion \Explorer \ FileExts \.bmp \ Userseroice的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆