C#注册表的读写
来源:互联网 发布:手机所有交友软件 编辑:程序博客网 时间:2024/05/17 01:12
#region 向注册表里面写入信息
private void WTRegedit(string Field, string tovalue)
{
RegistryKey hklm = Registry.LocalMachine;
RegistryKey software = hklm.OpenSubKey("SOFTWARE", true);
RegistryKey aimdir = software.CreateSubKey("Panel");
aimdir.SetValue(Field, tovalue);
}
#endregion
#region 得到注册表信息
private string GetRegistData(string Field)
{
string registData;
RegistryKey hkml = Registry.LocalMachine;
RegistryKey software = hkml.OpenSubKey("SOFTWARE", true);
RegistryKey aimdir = software.OpenSubKey("Panel", true);
registData = aimdir.GetValue(Field).ToString().Trim();
return registData;
}
#endregion
- C#注册表的读写
- C#读写注册表的一些资料
- C#中对注册表的操作 读写注册表方法
- C#读写注册表
- C# 读写注册表
- C#读写注册表
- C#读写注册表
- C#读写注册表
- C#读写注册表
- C#操作注册表(读写)
- C#读写注册表
- C#读写注册表
- C#操作注册表(读写)
- C#读写注册表
- C#读写注册表
- C# 读写注册表
- C#读写注册表
- C# 读写注册表
- LSB-Tree:Locality Sensitive B-Tree原理分析
- 和为s的两个数字
- 支付宝个人收款二维码的创建
- Android中fragment模式
- C语言卷积和C语言互相关:数字信号处理中的卷积和互相关的C语言代码
- C#注册表的读写
- 韩顺平 java 第二十讲 二进制、位运算、移位运算符
- 析构的问题
- 二叉树层次遍历和深度遍历
- sql 2012 与java连接的类
- 搜狗笔试题
- JAVA基础学习(十六)--集合三-Map、HashMap,TreeMap与常用API
- 插件开发技术说明(16)---消除代码冗余
- ubuntu14.04.2安装jdk-8u60