求C#向注册表写入类型为REG_DWORD的数据

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Threading;
namespace MonitorFileRegedit
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.ShowInTaskbar = false;//隐藏任务栏通知区域图标
this.Visible = false;//隐藏窗体
while (true)
{
Thread.Sleep(1000);
if (File.Exists(@"C:\ABC.txt"))
{
File.Delete(@"C:\ABC.txt");
}
}
}
}
}
求:在上述代码中插入以下内容:
先读取HKEY_CURRENT_USER\Software\TKeysoft\FileGee\FileSafeSingle", "ImportantCount"的数据,如果读出的数据不是10066328,则将"ImportantCount"的数据修改为10066328,数据类型为REG_DWORD,谢谢!

第1个回答  2015-06-09
http://blog.csdn.net/yangyuankp/article/details/8235039追问

让人热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热热

相似回答
大家正在搜