private void UacUnCheckedFunction(object sender, EventArgs e)
 {
     WindowsUtil.SetRegValueHklm(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\", "EnableLUA", "0",
                                 RegistryValueKind.DWord);
     Logger.Log("UAC disabled.", Logger.LogType.INFO);
     SwitchUacEnabled.IsChecked = WindowsUtil.UAC_Status();
 }
 private void CheckSystemStatus()
 {
     if (WindowsUtil.SystemRestore_Status() == 0)
     {
         Logger.Log("Windows Restore DISABLED", Logger.LogType.WARNING);
         SwitchCreateRestorePoint.IsChecked = false;
         SwitchCreateRestorePoint.IsEnabled = false;
     }
     if (WindowsUtil.GetWindowsBuildNumber() < 10000)
     {
         MessageBox.Show("Please run DWS on Windows 10.", "Info", MessageBoxButton.OK, MessageBoxImage.Information);
         Close();
     }
     SwitchUacEnabled.IsChecked = WindowsUtil.UAC_Status();
     Logger.Log($"System info: {WindowsUtil.GetProductName()}, Version:{WindowsUtil.GetSystemBuild()}", Logger.LogType.INFO);
 }