C#里面有操作注册表的类
using Microsoft.Win32;
RegistryKey regRead=Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
/*如果需要项的写访问权限,真第二个参数则设置为true,如果只是读取 
第二个参数为false,或者不要第二个参数
RegistryKey regRead=Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run",true);
*/string[] subKeyNames = regRead.GetSubKeyNames();//*得到当前项下所有子项名称字符串数组
string[] nowValueNames = regRead.GetValueNames();//*得到当前项名称字符串数组
string[] nowValue =string[nowValueNames.Length];//*用来保存当前项的键名称
for(int i=0;i< subKeyNames.Length;i++)
{
     nowValue[i] = regRead.GetValue(subKeyNames[i]);//*循环读取当前项的键值
}
regRead.Close();