Options.cs 6.3 KB

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