c# 读写注册表

RegistryKey _RegistryKey = Registry.CurrentUser.OpenSubKey(@”SOFTWARE\Microsoft\Windows\CurrentVersion\”, true);

//读取

object _Day = _RegistryKey.GetValue(“01B42DB9-3F07-4FC1-A573-33A12030AB70”, null);

//写入
_RegistryKey.SetValue(“01B42DB9-3F07-4FC1-A573-33A12030AB70”, DateTime.Now.Day);