Browse Source

Upcoming changes

deadmoon 4 years ago
parent
commit
cd3f8c49ea
3 changed files with 21 additions and 14466 deletions
  1. 5 5
      Optimizer/MainForm.Designer.cs
  2. 1 14459
      Optimizer/MainForm.resx
  3. 15 2
      Optimizer/Optimize.cs

+ 5 - 5
Optimizer/MainForm.Designer.cs

@@ -1289,7 +1289,7 @@ namespace Optimizer
             this.txtFeedError.ForeColor = System.Drawing.Color.Gold;
             this.txtFeedError.Location = new System.Drawing.Point(3, 47);
             this.txtFeedError.Name = "txtFeedError";
-            this.txtFeedError.Size = new System.Drawing.Size(854, 398);
+            this.txtFeedError.Size = new System.Drawing.Size(854, 396);
             this.txtFeedError.TabIndex = 167;
             this.txtFeedError.Text = "No internet connection, try refreshing links again";
             this.txtFeedError.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -1351,7 +1351,7 @@ namespace Optimizer
             this.panelCommonApps.Controls.Add(this.bitPref);
             this.panelCommonApps.Controls.Add(this.goToDownloadsB);
             this.panelCommonApps.Dock = System.Windows.Forms.DockStyle.Bottom;
-            this.panelCommonApps.Location = new System.Drawing.Point(3, 445);
+            this.panelCommonApps.Location = new System.Drawing.Point(3, 443);
             this.panelCommonApps.Name = "panelCommonApps";
             this.panelCommonApps.Size = new System.Drawing.Size(854, 165);
             this.panelCommonApps.TabIndex = 162;
@@ -3254,7 +3254,7 @@ namespace Optimizer
             this.synapse.Multiline = true;
             this.synapse.Name = "synapse";
             this.synapse.SelectedIndex = 0;
-            this.synapse.Size = new System.Drawing.Size(856, 609);
+            this.synapse.Size = new System.Drawing.Size(856, 607);
             this.synapse.TabIndex = 0;
             // 
             // integratorInfoTab
@@ -3271,7 +3271,7 @@ namespace Optimizer
             this.integratorInfoTab.Margin = new System.Windows.Forms.Padding(2);
             this.integratorInfoTab.Name = "integratorInfoTab";
             this.integratorInfoTab.Padding = new System.Windows.Forms.Padding(2);
-            this.integratorInfoTab.Size = new System.Drawing.Size(848, 581);
+            this.integratorInfoTab.Size = new System.Drawing.Size(848, 579);
             this.integratorInfoTab.TabIndex = 0;
             this.integratorInfoTab.Text = "Info";
             // 
@@ -6648,7 +6648,7 @@ namespace Optimizer
             this.ForeColor = System.Drawing.Color.White;
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
-            this.MinimumSize = new System.Drawing.Size(784, 744);
+            this.MinimumSize = new System.Drawing.Size(886, 744);
             this.Name = "MainForm";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.Text = "Optimizer";

File diff suppressed because it is too large
+ 1 - 14459
Optimizer/MainForm.resx


+ 15 - 2
Optimizer/Optimize.cs

@@ -794,6 +794,9 @@ namespace Optimizer
 
         internal static void EnhancePrivacy()
         {
+            // Shared Experiences
+            Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System", "EnableCdp", "0", RegistryValueKind.DWord);
+
             Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Privacy", "TailoredExperiencesWithDiagnosticDataEnabled", "0", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Privacy", "TailoredExperiencesWithDiagnosticDataEnabled", "0", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack", "ShowedToastAtLevel", "1", RegistryValueKind.DWord);
@@ -865,6 +868,16 @@ namespace Optimizer
 
         internal static void CompromisePrivacy()
         {
+            // Shared Experiences
+            try
+            {
+                Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Policies\Microsoft\Windows\System", true).DeleteValue("EnableCdp", false);
+            }
+            catch (Exception ex)
+            {
+                ErrorLogger.LogError("Optimize.CompromisePrivacy", ex.Message, ex.StackTrace);
+            }
+
             // Enable location tracking
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}", "SensorPermissionState", "1", RegistryValueKind.DWord);
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\lfsvc\Service\Configuration", "Status", "1", RegistryValueKind.DWord);
@@ -876,7 +889,7 @@ namespace Optimizer
             }
             catch (Exception ex)
             {
-                ErrorLogger.LogError("Optimize.EnablePrivacyOptions", ex.Message, ex.StackTrace);
+                ErrorLogger.LogError("Optimize.CompromisePrivacy", ex.Message, ex.StackTrace);
             }
 
             // Turn off KMS Client Online AVS Validation
@@ -901,7 +914,7 @@ namespace Optimizer
             }
             catch (Exception ex)
             {
-                ErrorLogger.LogError("Optimize.EnablePrivacyOptions", ex.Message, ex.StackTrace);
+                ErrorLogger.LogError("Optimize.CompromisePrivacy", ex.Message, ex.StackTrace);
             }
 
             Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection", "AllowTelemetry", "1", RegistryValueKind.DWord);

Some files were not shown because too many files changed in this diff