Справочник по C#

    Исходники по языку программирования CSharp

    moyadcode3

    Рубрика: RegistryKey

    Способ 1: RegistryKey rk = Registry.LocalMachine; RegistryKey rk1 = rk.OpenSubKey(@"SOFTWAREMicrosoftWindows NTCurrentVersionSystemRestore"); string sysRestore = rk1.GetValue("RPSessionInterval").ToString(); if (sysRestore.Contains("1")) { MessageBox.Show("System Restore is Enabled"); } if (sysRestore.Contains("0")) { MessageBox.Show("System Continue Reading

    RegistryKey rHive; try { try { rHive = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, namePVM ,RegistryView.Registry64); } catch (IOException) { MessageBox.Show("offline"); break; } var rKey = rHive.OpenSubKey("Software\Microsoft\Windows NT\CurrentVersion\", RegistryKeyPermissionCheck.ReadWriteSubTree); if (rKey == Continue Reading