レジストリの値を変える
/// <summary>
/// レジストリ登録
/// </summary>
public class SetRegistry
{
private static RegistryKey regKeySystemQR;
public static void String(string sRegKey, string value)
{
regKeySystemQR = Registry.LocalMachine.OpenSubKey(%サブキー文字列%, RegistryKeyPermissionCheck.ReadWriteSubTree);
regKeySystemQR.SetValue(sRegKey, value, RegistryValueKind.String);
regKeySystemQR.Flush();
}
public static void DWord(string sRegKey, int value)
{
regKeySystemQR = Registry.LocalMachine.OpenSubKey(%サブキー文字列%, RegistryKeyPermissionCheck.ReadWriteSubTree);
regKeySystemQR.SetValue(sRegKey, value, RegistryValueKind.DWord);
regKeySystemQR.Flush();
}
}