private void CheckEnableOrDisableUAC() { //destroyWindowsSpying.SetRegValueHKLM(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA", "1", RegistryValueKind.DWord); if (WindowsUtil.isLUAEnabled()) { btnEnableUac.Enabled = true; btnDisableUac.Enabled = false; } else { btnEnableUac.Enabled = false; btnDisableUac.Enabled = true; } if (WindowsUtil.isSystemRestoreEnabled() == 0) { checkBoxCreateSystemRestorePoint.Checked = false; checkBoxCreateSystemRestorePoint.Enabled = false; } }