注册表
要访问注册表,就可以使用Registry和RegistryKey。
7 1//创建注册表2
RegistryKey RegistryKey = Registry.LocalMachine;3
RegistryKey.CreateSubKey(@"SOFTWARE\WOW6432Node\DDSoftware");4
//设置值5
Registry.SetValue(RegistryKey+ @"\SOFTWARE\WOW6432Node\DDSoftware", "DDIMP","123");6
//读取注册表7
object AS = Registry.GetValue(RegistryKey + @"\SOFTWARE\WOW6432Node\DDSoftware", "DDIMP", "0");