Options.cs 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. using System;
  2. using System.Drawing;
  3. namespace Optimizer
  4. {
  5. [Serializable]
  6. public sealed class Options
  7. {
  8. /// <summary>
  9. /// Represents the theme color in RGB
  10. /// </summary>
  11. public Color Theme { get; set; }
  12. /// <summary>
  13. /// The folder in which the apps are downloaded from Apps tool
  14. /// </summary>
  15. public string AppsFolder { get; set; }
  16. /// <summary>
  17. /// Configures if the app will appear in the taskbar icons
  18. /// </summary>
  19. public bool EnableTray { get; set; }
  20. /// <summary>
  21. /// Configures if the app will start with Windows
  22. /// </summary>
  23. public bool AutoStart { get; set; }
  24. /// <summary>
  25. /// The DNS that the app will use for checking the internet connectivity
  26. /// </summary>
  27. public string InternalDNS { get; set; }
  28. /// <summary>
  29. /// Configures if the app will check for updates automatically on each run
  30. /// </summary>
  31. public bool UpdateOnLaunch { get; set; }
  32. /// <summary>
  33. /// Each option from this section will completely disable the respective tool (useful for troubleshooting)
  34. /// </summary>
  35. public bool DisableIndicium { get; set; }
  36. public bool DisableAppsTool { get; set; }
  37. public bool DisableHostsEditor { get; set; }
  38. public bool DisableUWPApps { get; set; }
  39. public bool DisableStartupTool { get; set; }
  40. public bool DisableCleaner { get; set; }
  41. public bool DisableIntegrator { get; set; }
  42. public bool DisablePinger { get; set; }
  43. /// <summary>
  44. /// Telemetry-related info, unique to each instance
  45. /// </summary>
  46. //public string TelemetryClientID { get; set; }
  47. //public bool DisableOptimizerTelemetry { get; set; }
  48. /// <summary>
  49. /// The saved language of the app
  50. /// </summary>
  51. public LanguageCode LanguageCode { get; set; }
  52. /// <summary>
  53. /// The state of the general tweaks
  54. /// Changing them will not disable/enable the respective tweak
  55. /// </summary>
  56. public bool EnablePerformanceTweaks { get; set; }
  57. public bool DisableNetworkThrottling { get; set; }
  58. public bool DisableWindowsDefender { get; set; }
  59. public bool DisableSystemRestore { get; set; }
  60. public bool DisablePrintService { get; set; }
  61. public bool DisableMediaPlayerSharing { get; set; }
  62. public bool DisableErrorReporting { get; set; }
  63. public bool DisableHomeGroup { get; set; }
  64. public bool DisableSuperfetch { get; set; }
  65. public bool DisableTelemetryTasks { get; set; }
  66. public bool DisableCompatibilityAssistant { get; set; }
  67. public bool DisableFaxService { get; set; }
  68. public bool DisableSmartScreen { get; set; }
  69. public bool DisableCloudClipboard { get; set; }
  70. public bool DisableStickyKeys { get; set; }
  71. public bool DisableHibernation { get; set; }
  72. public bool DisableSMB1 { get; set; }
  73. public bool DisableSMB2 { get; set; }
  74. public bool DisableNTFSTimeStamp { get; set; }
  75. public bool DisableSearch { get; set; }
  76. public bool EnableUtcTime { get; set; }
  77. public bool ShowAllTrayIcons { get; set; }
  78. public bool RemoveMenusDelay { get; set; }
  79. /// <summary>
  80. /// The state of the apps telemetry tweaks
  81. /// Changing them will not disable/enable the respective tweak
  82. /// </summary>
  83. public bool DisableOffice2016Telemetry { get; set; }
  84. public bool DisableVisualStudioTelemetry { get; set; }
  85. public bool DisableFirefoxTemeletry { get; set; }
  86. public bool DisableChromeTelemetry { get; set; }
  87. public bool DisableNVIDIATelemetry { get; set; }
  88. /// <summary>
  89. /// The state of the Edge-related tweaks
  90. /// Changing them will not disable/enable the respective tweak
  91. /// </summary>
  92. public bool DisableEdgeDiscoverBar { get; set; }
  93. public bool DisableEdgeTelemetry { get; set; }
  94. /// <summary>
  95. /// The state of the Windows 8/8.1 tweaks
  96. /// Changing them will not disable/enable the respective tweak
  97. /// </summary>
  98. public bool DisableOneDrive { get; set; }
  99. /// <summary>
  100. /// The state of the Windows 10 tweaks
  101. /// Changing them will not disable/enable the respective tweak
  102. /// </summary>
  103. public bool EnableLegacyVolumeSlider { get; set; }
  104. public bool DisableQuickAccessHistory { get; set; }
  105. public bool DisableStartMenuAds { get; set; }
  106. public bool UninstallOneDrive { get; set; }
  107. public bool DisableMyPeople { get; set; }
  108. public bool DisableAutomaticUpdates { get; set; }
  109. public bool ExcludeDrivers { get; set; }
  110. public bool DisableTelemetryServices { get; set; }
  111. public bool DisablePrivacyOptions { get; set; }
  112. public bool DisableCortana { get; set; }
  113. public bool DisableSensorServices { get; set; }
  114. public bool DisableWindowsInk { get; set; }
  115. public bool DisableSpellingTyping { get; set; }
  116. public bool DisableXboxLive { get; set; }
  117. public bool DisableGameBar { get; set; }
  118. public bool DisableInsiderService { get; set; }
  119. public bool DisableStoreUpdates { get; set; }
  120. public bool EnableLongPaths { get; set; }
  121. public bool RemoveCastToDevice { get; set; }
  122. public bool EnableGamingMode { get; set; }
  123. public bool RestoreClassicPhotoViewer { get; set; }
  124. public bool DisableModernStandby { get; set; }
  125. public bool HideTaskbarWeather { get; set; }
  126. public bool HideTaskbarSearch { get; set; }
  127. public bool DisableNewsInterests { get; set; }
  128. /// <summary>
  129. /// The state of the Windows 11 tweaks
  130. /// Changing them will not disable/enable the respective tweak
  131. /// </summary>
  132. public bool TaskbarToLeft { get; set; }
  133. public bool DisableSnapAssist { get; set; }
  134. public bool DisableWidgets { get; set; }
  135. public bool DisableChat { get; set; }
  136. public bool ClassicMenu { get; set; }
  137. public bool DisableTPMCheck { get; set; }
  138. public bool CompactMode { get; set; }
  139. public bool DisableStickers { get; set; }
  140. public bool DisableVBS { get; set; }
  141. public bool DisableCoPilotAI { get; set; }
  142. /// <summary>
  143. /// The state of the advanced tweaks
  144. /// Changing them will not disable/enable the respective tweak
  145. /// </summary>
  146. public bool DisableHPET { get; set; }
  147. public bool EnableLoginVerbose { get; set; }
  148. }
  149. }