如何使用C#授予对注册表项的访问权限 [英] how to grant access permision to registry key using C#

查看:121
本文介绍了如何使用C#授予对注册表项的访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从键HKEY_LOCAL_MACHINE \\ SYSTEM \\ ControlSet001 \\ Control \\ Class \\ {4D36E972-E325-11CE-BFC1-08002bE10318} \\ 0001键中写入和删除值,但是有异常.我该怎么办做.
我不想以admin

i want to write & delete value from key HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002bE10318}\\0001 key but there was exception .what i will do.
i dont want to run application as admin

推荐答案

的身份运行应用程序.我希望您使用的是Vista或Weven,并且您的应用程序需要以admin身份运行才能正常工作.你尝试过吗?

你没有选择.在某些新事物下,只有以admin身份运行的应用程序才能在Microsoft操作系统这个陈旧的新制度下运行.
I expect you''re on Vista or Weven and your app needs to be run as admin in order to work. Have you tried that ?

You have no choice. Certain things, only an app running as admin can do under the fetid new regime of Microsoft operating systems.


这篇关于如何使用C#授予对注册表项的访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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