如何读取和编写不可编辑的visual c#中的Registry? [英] How to read and write Registry in visual c# which is not editable?

查看:95
本文介绍了如何读取和编写不可编辑的visual c#中的Registry?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨亲爱的,

我打算开发一款具有试用版的软件。在试用期后,客户端应发送串行密钥请求。我会给出这个,但他不允许编辑这个密钥。只有系统可以做到这一点。

任何人都可以告诉我有关如何使用visual c#进行Acsses / Read / write到windows注册表的任何资源或方法。





任何帮助都将不胜感激。



问候

Pritam

Hi Dear,
I am planning to develop a software that will have a trial version. After trialing period client should send a request for serial key. I will give this but he will not permit to edit this key. Only system can do this.
Can anyone tell me any resource or methods on how to Acsses/Read/write into the windows registry using visual c#.


Any help would be greatly appreciated.

Regards
Pritam

推荐答案

Syed Asif Iqbal的解决方案很好。它回答了这个问题任何人都可以告诉我任何有关如何使用visual c#进行Acows /读/写入Windows注册表的资源或方法。



现在关于制作一个Windows注册表项只读:这是不可能的。 PC管理员将始终拥有注册表中每个键的完全权限。



实际上我不知道有可能在PC上创建只读的内容:管理员(希望)拥有一切完整的写权。即使有时似乎他们没有某些特定位置(如用户的文件夹)的权利,他们实际上可以轻易地窃取它....
Solution of "Syed Asif Iqbal" is the good one. It answers the question "Can anyone tell me any resource or methods on how to Acsses/Read/write into the windows registry using visual c#. "

Now regarding making a windows registry key read-only: That is not possible. PC administrators will always have full rights on every single key of the registry.

In fact I am not aware of a possibility to create something read-only on a PC : Admins have (hopefully) full write rights on EVERYTHING. Even if sometimes it seems they don't have the rights on certain specific locations (like user's folders) they in fact can steal it rather easily....


检查此链接



阅读,使用C#编写和删除注册表 [ ^ ]


这篇关于如何读取和编写不可编辑的visual c#中的Registry?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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