From b87344f1034a25e5b088269017de314771aae277 Mon Sep 17 00:00:00 2001
From: TK50P <127497974+TK50P@users.noreply.github.com>
Date: Thu, 15 Aug 2024 00:14:01 +0900
Subject: [PATCH] Add files via upload
---
NoMoreDWM.sln | 25 +
NoMoreDWM/App.xaml | 9 +
NoMoreDWM/App.xaml.cs | 16 +
NoMoreDWM/MainWindow.xaml | 50 ++
NoMoreDWM/MainWindow.xaml.cs | 615 ++++++++++++++++++
NoMoreDWM/NoMoreDWM.csproj | 99 +++
NoMoreDWM/Properties/AssemblyInfo.cs | 55 ++
NoMoreDWM/Properties/Resources.Designer.cs | 63 ++
NoMoreDWM/Properties/Resources.resx | 117 ++++
NoMoreDWM/Properties/Settings.Designer.cs | 26 +
NoMoreDWM/Properties/Settings.settings | 7 +
NoMoreDWM/app.config | 3 +
NoMoreDWM/app.manifest | 24 +
NoMoreDWM/obj/Debug/App.g.i.cs | 70 ++
.../DesignTimeResolveAssemblyReferences.cache | Bin 0 -> 205 bytes
...gnTimeResolveAssemblyReferencesInput.cache | Bin 0 -> 7272 bytes
NoMoreDWM/obj/Debug/MainWindow.g.i.cs | 111 ++++
.../NoMoreDWM.csproj.FileListAbsolute.txt | 0
.../obj/Debug/NoMoreDWM_MarkupCompile.i.cache | 20 +
.../Properties.Resources.Designer.cs.dll | Bin 0 -> 4096 bytes
NoMoreDWM/obj/Release/App.g.i.cs | 70 ++
NoMoreDWM/obj/Release/MainWindow.g.i.cs | 111 ++++
.../NoMoreDWM.csproj.FileListAbsolute.txt | 0
.../Properties.Resources.Designer.cs.dll | Bin 0 -> 4096 bytes
24 files changed, 1491 insertions(+)
create mode 100644 NoMoreDWM.sln
create mode 100644 NoMoreDWM/App.xaml
create mode 100644 NoMoreDWM/App.xaml.cs
create mode 100644 NoMoreDWM/MainWindow.xaml
create mode 100644 NoMoreDWM/MainWindow.xaml.cs
create mode 100644 NoMoreDWM/NoMoreDWM.csproj
create mode 100644 NoMoreDWM/Properties/AssemblyInfo.cs
create mode 100644 NoMoreDWM/Properties/Resources.Designer.cs
create mode 100644 NoMoreDWM/Properties/Resources.resx
create mode 100644 NoMoreDWM/Properties/Settings.Designer.cs
create mode 100644 NoMoreDWM/Properties/Settings.settings
create mode 100644 NoMoreDWM/app.config
create mode 100644 NoMoreDWM/app.manifest
create mode 100644 NoMoreDWM/obj/Debug/App.g.i.cs
create mode 100644 NoMoreDWM/obj/Debug/DesignTimeResolveAssemblyReferences.cache
create mode 100644 NoMoreDWM/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
create mode 100644 NoMoreDWM/obj/Debug/MainWindow.g.i.cs
create mode 100644 NoMoreDWM/obj/Debug/NoMoreDWM.csproj.FileListAbsolute.txt
create mode 100644 NoMoreDWM/obj/Debug/NoMoreDWM_MarkupCompile.i.cache
create mode 100644 NoMoreDWM/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
create mode 100644 NoMoreDWM/obj/Release/App.g.i.cs
create mode 100644 NoMoreDWM/obj/Release/MainWindow.g.i.cs
create mode 100644 NoMoreDWM/obj/Release/NoMoreDWM.csproj.FileListAbsolute.txt
create mode 100644 NoMoreDWM/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
diff --git a/NoMoreDWM.sln b/NoMoreDWM.sln
new file mode 100644
index 0000000..cbd487b
--- /dev/null
+++ b/NoMoreDWM.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.6.34931.59
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NoMoreDWM", "NoMoreDWM\NoMoreDWM.csproj", "{4DA82524-D71B-4045-BD26-6740262DADF7}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {4DA82524-D71B-4045-BD26-6740262DADF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4DA82524-D71B-4045-BD26-6740262DADF7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4DA82524-D71B-4045-BD26-6740262DADF7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4DA82524-D71B-4045-BD26-6740262DADF7}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {3F37ED43-FAFD-4832-90E6-CD50D24D3D9D}
+ EndGlobalSection
+EndGlobal
diff --git a/NoMoreDWM/App.xaml b/NoMoreDWM/App.xaml
new file mode 100644
index 0000000..71c0f51
--- /dev/null
+++ b/NoMoreDWM/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/NoMoreDWM/App.xaml.cs b/NoMoreDWM/App.xaml.cs
new file mode 100644
index 0000000..8ce2fdf
--- /dev/null
+++ b/NoMoreDWM/App.xaml.cs
@@ -0,0 +1,16 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Windows;
+
+namespace NoMoreDWM
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/NoMoreDWM/MainWindow.xaml b/NoMoreDWM/MainWindow.xaml
new file mode 100644
index 0000000..6e93465
--- /dev/null
+++ b/NoMoreDWM/MainWindow.xaml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/NoMoreDWM/MainWindow.xaml.cs b/NoMoreDWM/MainWindow.xaml.cs
new file mode 100644
index 0000000..51579ee
--- /dev/null
+++ b/NoMoreDWM/MainWindow.xaml.cs
@@ -0,0 +1,615 @@
+using System;
+using System.Diagnostics;
+using System.DirectoryServices.AccountManagement;
+using System.IO;
+using System.Linq;
+using System.Security.Principal;
+using System.Windows;
+using System.Runtime.InteropServices;
+using Microsoft.Win32;
+using System.Threading.Tasks;
+
+namespace NoMoreDWM
+{
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+
+ if (!IsDotNet45Installed())
+ {
+ MessageBox.Show("Please install .NET Framework 4.5.0 and try again!", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
+ Environment.Exit(1);
+ }
+
+ // Check OS version on startup
+ if (IsWindows7OrEarlier())
+ {
+ MessageBox.Show("This program cannot be run on Windows 7 or earlier. This program requires Windows 8 and later.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
+ Application.Current.Shutdown();
+ }
+ }
+
+ private bool IsDotNet45Installed()
+ {
+ const string subkey = @"SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\";
+ using (RegistryKey ndpKey = Registry.LocalMachine.OpenSubKey(subkey))
+ {
+ if (ndpKey != null && ndpKey.GetValue("Release") != null)
+ {
+ int releaseKey = (int)ndpKey.GetValue("Release");
+ // .NET Framework 4.5 corresponds to release key 378389 or higher
+ return releaseKey >= 378389;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ }
+
+ private async void DisableDWM_Click(object sender, RoutedEventArgs e)
+ {
+ if (IsWindows8())
+ {
+ // Show the warning message
+ MessageBoxResult result = MessageBox.Show("Disabling DWM will cause these problems:\n" +
+ "- Network Flyout no longer works.\n" +
+ "- Start Menu no longer works. You MUST use Open Shell to fix the start menu.\n" +
+ "- Metro Apps won't work.\n" +
+ "- Login Screen won't work. (You MUST remove the user account password.)\n" +
+ "- Use Supermium to fix broken titlebars.",
+ "Warning", MessageBoxButton.OKCancel, MessageBoxImage.Warning);
+
+ // If the user chooses 'Cancel', abort the operation
+ if (result == MessageBoxResult.Cancel)
+ {
+ return;
+ }
+
+ // Ask for confirmation
+ MessageBoxResult confirmationResult = MessageBox.Show("Are you sure you want to proceed?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Warning);
+ if (confirmationResult == MessageBoxResult.No)
+ {
+ return;
+ }
+ }
+
+ if (IsWindows81())
+ {
+ // Show the warning message
+ MessageBoxResult result = MessageBox.Show("Disabling DWM will cause these problems:\n" +
+ "- Network Flyout no longer works.\n" +
+ "- Start Menu no longer works. You MUST use Open Shell to fix the start menu.\n" +
+ "- Metro Apps won't work.\n" +
+ "- Login Screen won't work. (You MUST remove the user account password.)\n" +
+ "- Use Supermium to fix broken titlebars.",
+ "Warning", MessageBoxButton.OKCancel, MessageBoxImage.Warning);
+
+ // If the user chooses 'Cancel', abort the operation
+ if (result == MessageBoxResult.Cancel)
+ {
+ return;
+ }
+
+ // Ask for confirmation
+ MessageBoxResult confirmationResult = MessageBox.Show("Are you sure you want to proceed?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Warning);
+ if (confirmationResult == MessageBoxResult.No)
+ {
+ return;
+ }
+ }
+
+ if (IsWindows10())
+ {
+ // Show the warning message for Windows 10 (1809+) and later
+ MessageBoxResult result = MessageBox.Show("Disabling DWM will cause these problems:\n" +
+ "- Network Flyout and sound flyout no longer works. you need to revert windows 7's sound flyout.\n" +
+ "- Start Menu no longer works. You MUST use Open Shell to fix the start menu.\n" +
+ "- Metro/UWP Apps won't work.\n" +
+ "- It will uses Console-based Login screen.\n" +
+ "- Use Supermium to fix broken titlebars.\n" +
+ "- You need to use classic control panel applets to customize background.\n" +
+ "- (1809+) The process may persist even after the window is closed.\n" +
+ "- (1809+) Permanently delete files won't work.\n" +
+ "- (1809+) Once error occurs, the system may freeze. you need to log off then log in again.",
+ "Warning", MessageBoxButton.OKCancel, MessageBoxImage.Warning);
+
+ // If the user chooses 'Cancel', abort the operation
+ if (result == MessageBoxResult.Cancel)
+ {
+ return;
+ }
+
+ // Ask for confirmation
+ MessageBoxResult confirmationResult = MessageBox.Show("Are you sure you want to proceed?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Warning);
+ if (confirmationResult == MessageBoxResult.No)
+ {
+ return;
+ }
+ }
+
+ if (IsWindows11())
+ {
+ // Show the warning message for Windows 11 and later
+ MessageBoxResult result = MessageBox.Show("Disabling DWM will cause these problems:\n" +
+ "- Network Flyout and sound flyout no longer works. you need to revert windows 7's sound flyout.\n" +
+ "- Start Menu no longer works. You MUST use Open Shell to fix the start menu.\n" +
+ "- Metro/UWP Apps won't work.\n" +
+ "- It will uses Console-based Login screen.\n" +
+ "- Use Supermium to fix broken titlebars.\n" +
+ "- You need to use classic control panel applets to customize background.\n" +
+ "- TASKBAR WILL GONE AWAY, YOU MUST USE STARTALLBACK TO USE TASKBAR.",
+ "Warning", MessageBoxButton.OKCancel, MessageBoxImage.Warning);
+
+ // If the user chooses 'Cancel', abort the operation
+ if (result == MessageBoxResult.Cancel)
+ {
+ return;
+ }
+
+ // Ask for confirmation
+ MessageBoxResult confirmationResult = MessageBox.Show("Are you sure you want to proceed?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Warning);
+ if (confirmationResult == MessageBoxResult.No)
+ {
+ return;
+ }
+ }
+
+
+ if (IsDwmRunning())
+ {
+ try
+ {
+ string script = GetDisableScript();
+
+ string batFilePath = Path.Combine(Path.GetTempPath(), "DisableDWM.bat");
+ File.WriteAllText(batFilePath, script);
+
+ ProcessStartInfo psi = new ProcessStartInfo
+ {
+ FileName = batFilePath,
+ UseShellExecute = true,
+ Verb = "runas",
+ WindowStyle = ProcessWindowStyle.Hidden
+ };
+
+ Process.Start(psi);
+
+ // Step 4 continued: Introduce a 5-second delay
+ await Task.Delay(5000);
+
+ // Prompt for restart
+ PromptRestart();
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show("An error occurred: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
+ }
+ }
+ else
+ {
+ MessageBox.Show("DWM is already disabled.", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
+ }
+ }
+
+ private async void EnableDWM_Click(object sender, RoutedEventArgs e)
+ {
+ if (!IsDwmRunning())
+ {
+ try
+ {
+ string script = GetEnableScript();
+
+ string batFilePath = Path.Combine(Path.GetTempPath(), "EnableDWM.bat");
+ File.WriteAllText(batFilePath, script);
+
+ ProcessStartInfo psi = new ProcessStartInfo
+ {
+ FileName = batFilePath,
+ UseShellExecute = true,
+ Verb = "runas",
+ WindowStyle = ProcessWindowStyle.Hidden
+ };
+
+ Process.Start(psi);
+
+ // Step 4 continued: Introduce a 5-second delay
+ await Task.Delay(1000);
+
+ // Prompt for restart
+ PromptRestart();
+ }
+
+ catch (Exception ex)
+ {
+ MessageBox.Show("An error occurred: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
+ }
+ }
+ else
+ {
+ MessageBox.Show("DWM is already running.", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
+ }
+ }
+
+ private bool IsAdministrator()
+ {
+ using (WindowsIdentity identity = WindowsIdentity.GetCurrent())
+ {
+ WindowsPrincipal principal = new WindowsPrincipal(identity);
+ return principal.IsInRole(WindowsBuiltInRole.Administrator);
+ }
+ }
+
+ private void PromptRestart()
+ {
+ MessageBoxResult result = MessageBox.Show("You must restart system to apply changes. Do you want to restart your system now?", "Restart Required", MessageBoxButton.YesNo, MessageBoxImage.Question);
+ if (result == MessageBoxResult.Yes)
+ {
+ Process.Start(new ProcessStartInfo("shutdown", "/r /t 0")
+ {
+ CreateNoWindow = true,
+ UseShellExecute = false
+ });
+ }
+ }
+
+ private bool IsDwmRunning()
+ {
+ return Process.GetProcessesByName("dwm").Any();
+ }
+
+ private bool IsWindows7OrEarlier()
+ {
+ var os = Environment.OSVersion;
+ return os.Platform == PlatformID.Win32NT
+ && (os.Version.Major < 6 || (os.Version.Major == 6
+ && os.Version.Minor <= 1));
+ }
+
+ private bool IsWindows8()
+ {
+ var os = Environment.OSVersion;
+ return os.Platform == PlatformID.Win32NT && os.Version.Major == 6 && os.Version.Minor == 2;
+ }
+
+ private bool IsWindows81()
+ {
+ var os = Environment.OSVersion;
+ return os.Platform == PlatformID.Win32NT && os.Version.Major == 6 && os.Version.Minor == 3;
+ }
+
+ private bool IsWindows10()
+ {
+ var os = Environment.OSVersion;
+ return os.Platform == PlatformID.Win32NT && os.Version.Major == 10 && os.Version.Build < 22000;
+ }
+
+ private bool IsWindows11()
+ {
+ var os = Environment.OSVersion;
+ return os.Platform == PlatformID.Win32NT && os.Version.Major == 10 && os.Version.Build >= 22000;
+ }
+
+ private string GetDisableScript()
+ {
+ if (IsWindows8())
+ {
+ return GetDisableScriptForWindows8();
+ }
+ else if (IsWindows81())
+ {
+ return GetDisableScriptForWindows81();
+ }
+ else if (IsWindows10())
+ {
+ return GetDisableScriptForWindows10();
+ }
+ else if (IsWindows11())
+ {
+ return GetDisableScriptForWindows11();
+ }
+ return string.Empty;
+ }
+
+ private string GetEnableScript()
+ {
+ if (IsWindows8())
+ {
+ return GetEnableScriptForWindows8();
+ }
+ else if (IsWindows81())
+ {
+ return GetEnableScriptForWindows81();
+ }
+ else if (IsWindows10())
+ {
+ return GetEnableScriptForWindows10();
+ }
+ else if (IsWindows11())
+ {
+ return GetEnableScriptForWindows11();
+ }
+ return string.Empty;
+ }
+
+ private string GetDisableScriptForWindows8()
+ {
+ // Add the specific script for Windows 8
+ return @"
+ if exist %systemroot%\ImmersiveControlPanel takeown /F %systemroot%\ImmersiveControlPanel /R /A & icacls %systemroot%\ImmersiveControlPanel /grant Administrators:(F) /T
+ if exist %systemroot%\System32\UIRibbon.dll takeown /F %systemroot%\System32\UIRibbon.dll /A & icacls %systemroot%\System32\UIRibbon.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\UIRibbonRes.dll takeown /F %systemroot%\System32\UIRibbonRes.dll /A & icacls %systemroot%\System32\UIRibbonRes.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\dwm.exe takeown /F %systemroot%\System32\dwm.exe /A & icacls %systemroot%\System32\dwm.exe /grant Administrators:(F)
+ if exist %systemroot%\System32\UiRibbon.dll takeown /F %systemroot%\System32\UiRibbon.dll /A & icacls %systemroot%\System32\UiRibbon.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\UiRibbonRes.dll takeown /F %systemroot%\System32\UiRibbonRes.dll /A & icacls %systemroot%\System32\UiRibbonRes.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll takeown /F %systemroot%\System32\windows.immersiveshell.serviceprovider.dll /A & icacls %systemroot%\System32\windows.immersiveshell.serviceprovider.dll /grant Administrators:(F)
+ if exist %systemroot%\SystemResources takeown /F %systemroot%\SystemResources /R /A & icacls %systemroot%\SystemResources /grant Administrators:(F) /T
+ taskkill /F /IM ApplicationFrameHost.exe
+ taskkill /F /IM RuntimeBroker.exe
+ taskkill /F /IM ShellExperienceHost.exe
+ taskkill /F /IM SystemSettings.exe
+ if not exist %systemroot%\System32\UiRibbon.dll.old if exist %systemroot%\System32\UiRibbon.dll ren %systemroot%\System32\UiRibbon.dll UiRibbon.dll.old
+ if exist %systemroot%\System32\UiRibbon.dll.old if exist %systemroot%\System32\UiRibbon.dll del /q %systemroot%\System32\UiRibbon.dll
+ if not exist %systemroot%\System32\UiRibbonRes.dll.old if exist %systemroot%\System32\UiRibbonRes.dll ren %systemroot%\System32\UiRibbonRes.dll UiRibbonRes.dll.old
+ if exist %systemroot%\System32\UiRibbonRes.dll.old if exist %systemroot%\System32\UiRibbonRes.dll del /q %systemroot%\System32\UiRibbonRes.dll
+ if not exist %systemroot%\SystemResources.old if exist %systemroot%\SystemResources ren %systemroot%\SystemResources SystemResources.old
+ if exist %systemroot%\SystemResources.old if exist %systemroot%\SystemResources rmdir /S /Q %systemroot%\SystemResources
+ :: Tweaks for classic UI
+ reg add ""HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer"" /v ""AltTabSettings"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKCU\Software\Microsoft\Windows\DWM"" /v ""CompositionPolicy"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""ConsoleMode"" /t REG_DWORD /d ""1"" /f
+ reg add ""HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""XamlCredUIAvailable"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKLM\System\CurrentControlSet\Services\Themes"" /v ""Start"" /t REG_DWORD /d ""4"" /f
+ :: Confuse Windows with a fake dwm.exe
+ if exist %systemroot%\System32\dwm.exe takeown /F %systemroot%\System32\dwm.exe /A & icacls %systemroot%\System32\dwm.exe /grant Administrators:(F)
+ if not exist %systemroot%\System32\dwm.exe.old if exist %systemroot%\System32\dwm.exe ren %systemroot%\System32\dwm.exe dwm.exe.old
+ if exist %systemroot%\System32\dwm.exe.old if exist %systemroot%\System32\dwm.exe del /q %systemroot%\System32\dwm.exe
+ echo N| copy/-Y ""%systemroot%\System32\rundll32.exe"" ""%systemroot%\System32\dwm.exe""
+ ";
+ }
+
+ private string GetDisableScriptForWindows81()
+ {
+ // Add the specific script for Windows 8.1
+ return @"
+ if exist %systemroot%\ImmersiveControlPanel takeown /F %systemroot%\ImmersiveControlPanel /R /A & icacls %systemroot%\ImmersiveControlPanel /grant Administrators:(F) /T
+ if exist %systemroot%\System32\UIRibbon.dll takeown /F %systemroot%\System32\UIRibbon.dll /A & icacls %systemroot%\System32\UIRibbon.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\UIRibbonRes.dll takeown /F %systemroot%\System32\UIRibbonRes.dll /A & icacls %systemroot%\System32\UIRibbonRes.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\dwm.exe takeown /F %systemroot%\System32\dwm.exe /A & icacls %systemroot%\System32\dwm.exe /grant Administrators:(F)
+ if exist %systemroot%\System32\UiRibbon.dll takeown /F %systemroot%\System32\UiRibbon.dll /A & icacls %systemroot%\System32\UiRibbon.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\UiRibbonRes.dll takeown /F %systemroot%\System32\UiRibbonRes.dll /A & icacls %systemroot%\System32\UiRibbonRes.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll takeown /F %systemroot%\System32\windows.immersiveshell.serviceprovider.dll /A & icacls %systemroot%\System32\windows.immersiveshell.serviceprovider.dll /grant Administrators:(F)
+ if exist %systemroot%\SystemResources takeown /F %systemroot%\SystemResources /R /A & icacls %systemroot%\SystemResources /grant Administrators:(F) /T
+ taskkill /F /IM ApplicationFrameHost.exe
+ taskkill /F /IM RuntimeBroker.exe
+ taskkill /F /IM ShellExperienceHost.exe
+ taskkill /F /IM SystemSettings.exe
+ if not exist %systemroot%\System32\UiRibbon.dll.old if exist %systemroot%\System32\UiRibbon.dll ren %systemroot%\System32\UiRibbon.dll UiRibbon.dll.old
+ if exist %systemroot%\System32\UiRibbon.dll.old if exist %systemroot%\System32\UiRibbon.dll del /q %systemroot%\System32\UiRibbon.dll
+ if not exist %systemroot%\System32\UiRibbonRes.dll.old if exist %systemroot%\System32\UiRibbonRes.dll ren %systemroot%\System32\UiRibbonRes.dll UiRibbonRes.dll.old
+ if exist %systemroot%\System32\UiRibbonRes.dll.old if exist %systemroot%\System32\UiRibbonRes.dll del /q %systemroot%\System32\UiRibbonRes.dll
+ if not exist %systemroot%\SystemResources.old if exist %systemroot%\SystemResources ren %systemroot%\SystemResources SystemResources.old
+ if exist %systemroot%\SystemResources.old if exist %systemroot%\SystemResources rmdir /S /Q %systemroot%\SystemResources
+ :: Tweaks for classic UI
+ reg add ""HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer"" /v ""AltTabSettings"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKCU\Software\Microsoft\Windows\DWM"" /v ""CompositionPolicy"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""ConsoleMode"" /t REG_DWORD /d ""1"" /f
+ reg add ""HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""XamlCredUIAvailable"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKLM\System\CurrentControlSet\Services\Themes"" /v ""Start"" /t REG_DWORD /d ""4"" /f
+ :: Confuse Windows with a fake dwm.exe
+ if exist %systemroot%\System32\dwm.exe takeown /F %systemroot%\System32\dwm.exe /A & icacls %systemroot%\System32\dwm.exe /grant Administrators:(F)
+ if not exist %systemroot%\System32\dwm.exe.old if exist %systemroot%\System32\dwm.exe ren %systemroot%\System32\dwm.exe dwm.exe.old
+ if exist %systemroot%\System32\dwm.exe.old if exist %systemroot%\System32\dwm.exe del /q %systemroot%\System32\dwm.exe
+ echo N| copy/-Y ""%systemroot%\System32\rundll32.exe"" ""%systemroot%\System32\dwm.exe""
+ ";
+ }
+
+ private string GetDisableScriptForWindows10()
+ {
+ // Add the specific script for Windows 10
+ return @"
+ if exist %systemroot%\ImmersiveControlPanel takeown /F %systemroot%\ImmersiveControlPanel /R /A & icacls %systemroot%\ImmersiveControlPanel /grant Administrators:(F) /T
+ if exist %systemroot%\System32\UIRibbon.dll takeown /F %systemroot%\System32\UIRibbon.dll /A & icacls %systemroot%\System32\UIRibbon.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\UIRibbonRes.dll takeown /F %systemroot%\System32\UIRibbonRes.dll /A & icacls %systemroot%\System32\UIRibbonRes.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\dwm.exe takeown /F %systemroot%\System32\dwm.exe /A & icacls %systemroot%\System32\dwm.exe /grant Administrators:(F)
+ if exist %systemroot%\System32\UiRibbon.dll takeown /F %systemroot%\System32\UiRibbon.dll /A & icacls %systemroot%\System32\UiRibbon.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\UiRibbonRes.dll takeown /F %systemroot%\System32\UiRibbonRes.dll /A & icacls %systemroot%\System32\UiRibbonRes.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\Windows.UI.Logon.dll takeown /F %systemroot%\System32\Windows.UI.Logon.dll /A & icacls %systemroot%\System32\Windows.UI.Logon.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll takeown /F %systemroot%\System32\windows.immersiveshell.serviceprovider.dll /A & icacls %systemroot%\System32\windows.immersiveshell.serviceprovider.dll /grant Administrators:(F)
+ if exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy takeown /F %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy /R /A & icacls %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy /grant Administrators:(F) /T
+ taskkill /F /IM ApplicationFrameHost.exe
+ taskkill /F /IM RuntimeBroker.exe
+ taskkill /F /IM ShellExperienceHost.exe
+ taskkill /F /IM SystemSettings.exe
+ if not exist %systemroot%\ImmersiveControlPanel.old if exist %systemroot%\ImmersiveControlPanel ren %systemroot%\ImmersiveControlPanel ImmersiveControlPanel.old
+ if exist %systemroot%\ImmersiveControlPanel.old if exist %systemroot%\ImmersiveControlPanel rmdir /S /Q %systemroot%\ImmersiveControlPanel
+ if not exist %systemroot%\System32\UiRibbon.dll.old if exist %systemroot%\System32\UiRibbon.dll ren %systemroot%\System32\UiRibbon.dll UiRibbon.dll.old
+ if exist %systemroot%\System32\UiRibbon.dll.old if exist %systemroot%\System32\UiRibbon.dll del /q %systemroot%\System32\UiRibbon.dll
+ if not exist %systemroot%\System32\UiRibbonRes.dll.old if exist %systemroot%\System32\UiRibbonRes.dll ren %systemroot%\System32\UiRibbonRes.dll UiRibbonRes.dll.old
+ if exist %systemroot%\System32\UiRibbonRes.dll.old if exist %systemroot%\System32\UiRibbonRes.dll del /q %systemroot%\System32\UiRibbonRes.dll
+ if not exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll ren %systemroot%\System32\windows.immersiveshell.serviceprovider.dll windows.immersiveshell.serviceprovider.dll.old
+ if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll del /q %systemroot%\System32\windows.immersiveshell.serviceprovider.dll
+ if not exist %systemroot%\System32\Windows.UI.Logon.dll.old if exist %systemroot%\System32\Windows.UI.Logon.dll ren %systemroot%\System32\Windows.UI.Logon.dll Windows.UI.Logon.dll.old
+ if exist %systemroot%\System32\Windows.UI.Logon.dll.old if exist %systemroot%\System32\Windows.UI.Logon.dll del /q %systemroot%\System32\Windows.UI.Logon.dll
+ if not exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy.old if exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy ren %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy ShellExperienceHost_cw5n1h2txyewy.old
+ if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy.old if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy rmdir /S /Q %systemroot%\ShellExperienceHost_cw5n1h2txyewy
+ :: Tweaks for classic UI
+ reg add ""HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer"" /v ""AltTabSettings"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKCU\Software\Microsoft\Windows\DWM"" /v ""CompositionPolicy"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""ConsoleMode"" /t REG_DWORD /d ""1"" /f
+ reg add ""HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""XamlCredUIAvailable"" /t REG_DWORD /d ""0"" /f
+ :: Confuse Windows with a fake dwm.exe
+ if exist %systemroot%\System32\dwm.exe takeown /F %systemroot%\System32\dwm.exe /A & icacls %systemroot%\System32\dwm.exe /grant Administrators:(F)
+ if not exist %systemroot%\System32\dwm.exe.old if exist %systemroot%\System32\dwm.exe ren %systemroot%\System32\dwm.exe dwm.exe.old
+ if exist %systemroot%\System32\dwm.exe.old if exist %systemroot%\System32\dwm.exe del /q %systemroot%\System32\dwm.exe
+ echo N| copy/-Y ""%systemroot%\System32\rundll32.exe"" ""%systemroot%\System32\dwm.exe""
+ ";
+ }
+
+ private string GetDisableScriptForWindows11()
+ {
+ // Add the specific script for Windows 11
+ return @"
+ if exist %systemroot%\ImmersiveControlPanel takeown /F %systemroot%\ImmersiveControlPanel /R /A & icacls %systemroot%\ImmersiveControlPanel /grant Administrators:(F) /T
+ if exist %systemroot%\System32\UIRibbon.dll takeown /F %systemroot%\System32\UIRibbon.dll /A & icacls %systemroot%\System32\UIRibbon.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\UIRibbonRes.dll takeown /F %systemroot%\System32\UIRibbonRes.dll /A & icacls %systemroot%\System32\UIRibbonRes.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\dwm.exe takeown /F %systemroot%\System32\dwm.exe /A & icacls %systemroot%\System32\dwm.exe /grant Administrators:(F)
+ if exist %systemroot%\System32\dwminit.dll takeown /F %systemroot%\System32\dwminit.dll /A & icacls %systemroot%\System32\dwminit.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\Windows.UI.Search.dll takeown /F %systemroot%\System32\Windows.UI.Search.dll /A & icacls %systemroot%\System32\Windows.UI.Search.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\Windows.Shell.Search.UriHandler.dll takeown /F %systemroot%\System32\Windows.Shell.Search.UriHandler.dll /A & icacls %systemroot%\System32\Windows.Shell.Search.UriHandler.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\Windows.UI.Logon.dll takeown /F %systemroot%\System32\Windows.UI.Logon.dll /A & icacls %systemroot%\System32\Windows.UI.Logon.dll /grant Administrators:(F)
+ if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll takeown /F %systemroot%\System32\windows.immersiveshell.serviceprovider.dll /A & icacls %systemroot%\System32\windows.immersiveshell.serviceprovider.dll /grant Administrators:(F)
+ if exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy takeown /F %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy /R /A & icacls %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy /grant Administrators:(F) /T
+ taskkill /F /IM ApplicationFrameHost.exe
+ taskkill /F /IM RuntimeBroker.exe
+ taskkill /F /IM ShellExperienceHost.exe
+ taskkill /F /IM SystemSettings.exe
+ if not exist %systemroot%\ImmersiveControlPanel.old if exist %systemroot%\ImmersiveControlPanel ren %systemroot%\ImmersiveControlPanel ImmersiveControlPanel.old
+ if exist %systemroot%\ImmersiveControlPanel.old if exist %systemroot%\ImmersiveControlPanel rmdir /S /Q %systemroot%\ImmersiveControlPanel
+ if not exist %systemroot%\System32\dwminit.dll.old if exist %systemroot%\System32\dwminit.dll ren %systemroot%\System32\dwminit.dll dwminit.dll.old
+ if exist %systemroot%\System32\dwminit.dll.old if exist %systemroot%\System32\dwminit.dll del /q %systemroot%\System32\dwminit.dll
+ if not exist %systemroot%\System32\UiRibbon.dll.old if exist %systemroot%\System32\UiRibbon.dll ren %systemroot%\System32\UiRibbon.dll UiRibbon.dll.old
+ if exist %systemroot%\System32\UiRibbon.dll.old if exist %systemroot%\System32\UiRibbon.dll del /q %systemroot%\System32\UiRibbon.dll
+ if not exist %systemroot%\System32\UiRibbonRes.dll.old if exist %systemroot%\System32\UiRibbonRes.dll ren %systemroot%\System32\UiRibbonRes.dll UiRibbonRes.dll.old
+ if exist %systemroot%\System32\UiRibbonRes.dll.old if exist %systemroot%\System32\UiRibbonRes.dll del /q %systemroot%\System32\UiRibbonRes.dll
+ if not exist %systemroot%\System32\Windows.UI.Search.dll.old if exist %systemroot%\System32\dwminit.dll ren %systemroot%\System32\Windows.UI.Search.dll Windows.UI.Search.dll.old
+ if exist %systemroot%\System32\Windows.UI.Search.dll.old if exist %systemroot%\System32\Windows.UI.Search.dll del /q %systemroot%\System32\Windows.UI.Search.dll
+ if not exist %systemroot%\System32\Windows.Shell.Search.UriHandler.dll.old if exist %systemroot%\System32\Windows.Shell.Search.UriHandler.dll ren %systemroot%\System32\Windows.Shell.Search.UriHandler.dll Windows.Shell.Search.UriHandler.dll.old
+ if exist %systemroot%\System32\Windows.Shell.Search.UriHandler.dll.old if exist %systemroot%\System32\Windows.Shell.Search.UriHandler.dll del /q %systemroot%\System32\Windows.Shell.Search.UriHandler.dll
+ if not exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll ren %systemroot%\System32\windows.immersiveshell.serviceprovider.dll windows.immersiveshell.serviceprovider.dll.old
+ if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll del /q %systemroot%\System32\windows.immersiveshell.serviceprovider.dll
+ if not exist %systemroot%\System32\Windows.UI.Logon.dll.old if exist %systemroot%\System32\Windows.UI.Logon.dll ren %systemroot%\System32\Windows.UI.Logon.dll Windows.UI.Logon.dll.old
+ if exist %systemroot%\System32\Windows.UI.Logon.dll.old if exist %systemroot%\System32\Windows.UI.Logon.dll del /q %systemroot%\System32\Windows.UI.Logon.dll
+ if not exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy.old if exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy ren %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy ShellExperienceHost_cw5n1h2txyewy.old
+ if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy.old if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy rmdir /S /Q %systemroot%\ShellExperienceHost_cw5n1h2txyewy
+ :: Tweaks for classic UI
+ reg add ""HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer"" /v ""AltTabSettings"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKCU\Software\Microsoft\Windows\DWM"" /v ""CompositionPolicy"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""ConsoleMode"" /t REG_DWORD /d ""1"" /f
+ reg add ""HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""XamlCredUIAvailable"" /t REG_DWORD /d ""0"" /f
+ reg add ""HKLM\System\CurrentControlSet\Services\Themes"" /v ""Start"" /t REG_DWORD /d ""4"" /f
+ :: Confuse Windows with a fake dwm.exe
+ if exist %systemroot%\System32\dwm.exe takeown /F %systemroot%\System32\dwm.exe /A & icacls %systemroot%\System32\dwm.exe /grant Administrators:(F)
+ if not exist %systemroot%\System32\dwm.exe.old if exist %systemroot%\System32\dwm.exe ren %systemroot%\System32\dwm.exe dwm.exe.old
+ if exist %systemroot%\System32\dwm.exe.old if exist %systemroot%\System32\dwm.exe del /q %systemroot%\System32\dwm.exe
+ echo N| copy/-Y ""%systemroot%\System32\rundll32.exe"" ""%systemroot%\System32\dwm.exe""
+ ";
+ }
+
+ private string GetEnableScriptForWindows8()
+ {
+ // Add the specific script for Windows 8
+ return @"
+ if not exist %systemroot%\System32\UiRibbon.dll if exist %systemroot%\System32\UiRibbon.dll.old ren %systemroot%\System32\UiRibbon.dll.old UiRibbon.dll
+ if exist %systemroot%\System32\UiRibbon.dll if exist %systemroot%\System32\UiRibbon.dll.old del /q %systemroot%\System32\UiRibbon.dll.old
+ if not exist %systemroot%\System32\UiRibbonRes.dll if exist %systemroot%\System32\UiRibbonRes.dll.old ren %systemroot%\System32\UiRibbonRes.dll.old UiRibbonRes.dll
+ if exist %systemroot%\System32\UiRibbonRes.dll if exist %systemroot%\System32\UiRibbonRes.dll.old del /q %systemroot%\System32\UiRibbonRes.dll.old
+ if not exist %systemroot%\System32\Windows.UI.Logon.dll if exist %systemroot%\System32\Windows.UI.Logon.dll.old ren %systemroot%\System32\Windows.UI.Logon.dll.old Windows.UI.Logon.dll
+ if exist %systemroot%\System32\Windows.UI.Logon.dll if exist %systemroot%\System32\Windows.UI.Logon.dll.old del /q %systemroot%\System32\Windows.UI.Logon.dll.old
+ if not exist %systemroot%\SystemResources if exist %systemroot%\SystemResources.old ren %systemroot%\SystemResources.old SystemResources
+ if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy if exist %systemroot%\SystemResources.old rmdir /S /Q %systemroot%\SystemResources.old
+ :: Revert classic UI tweaks
+ reg delete ""HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer"" /v ""AltTabSettings"" /f
+ reg delete ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""ConsoleMode"" /f
+ reg delete ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""XamlCredUIAvailable"" /f
+ reg add ""HKCU\Software\Microsoft\Windows\DWM"" /v ""CompositionPolicy"" /t REG_DWORD /d ""1"" /f
+ reg add ""HKLM\SYSTEM\CurrentControlSet\Services\Themes"" /v ""Start"" /t REG_DWORD /d ""2"" /f
+ :: Revert DWM.exe changes
+ del %systemroot%\System32\dwm.exe
+ if exist %systemroot%\System32\dwm.exe.old takeown /F %systemroot%\System32\dwm.exe.old /A & icacls %systemroot%\System32\dwm.exe.old /grant Administrators:(F)
+ if not exist %systemroot%\System32\dwm.exe if exist %systemroot%\System32\dwm.exe.old ren %systemroot%\System32\dwm.exe.old dwm.exe
+ ";
+ }
+
+ private string GetEnableScriptForWindows81()
+ {
+ // Add the specific script for Windows 8.1
+ return @"
+ if not exist %systemroot%\System32\UiRibbon.dll if exist %systemroot%\System32\UiRibbon.dll.old ren %systemroot%\System32\UiRibbon.dll.old UiRibbon.dll
+ if exist %systemroot%\System32\UiRibbon.dll if exist %systemroot%\System32\UiRibbon.dll.old del /q %systemroot%\System32\UiRibbon.dll.old
+ if not exist %systemroot%\System32\UiRibbonRes.dll if exist %systemroot%\System32\UiRibbonRes.dll.old ren %systemroot%\System32\UiRibbonRes.dll.old UiRibbonRes.dll
+ if exist %systemroot%\System32\UiRibbonRes.dll if exist %systemroot%\System32\UiRibbonRes.dll.old del /q %systemroot%\System32\UiRibbonRes.dll.old
+ if not exist %systemroot%\System32\Windows.UI.Logon.dll if exist %systemroot%\System32\Windows.UI.Logon.dll.old ren %systemroot%\System32\Windows.UI.Logon.dll.old Windows.UI.Logon.dll
+ if exist %systemroot%\System32\Windows.UI.Logon.dll if exist %systemroot%\System32\Windows.UI.Logon.dll.old del /q %systemroot%\System32\Windows.UI.Logon.dll.old
+ if not exist %systemroot%\SystemResources if exist %systemroot%\SystemResources.old ren %systemroot%\SystemResources.old SystemResources
+ if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy if exist %systemroot%\SystemResources.old rmdir /S /Q %systemroot%\SystemResources.old
+ :: Revert classic UI tweaks
+ reg delete ""HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer"" /v ""AltTabSettings"" /f
+ reg delete ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""ConsoleMode"" /f
+ reg delete ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""XamlCredUIAvailable"" /f
+ reg add ""HKCU\Software\Microsoft\Windows\DWM"" /v ""CompositionPolicy"" /t REG_DWORD /d ""1"" /f
+ reg add ""HKLM\SYSTEM\CurrentControlSet\Services\Themes"" /v ""Start"" /t REG_DWORD /d ""2"" /f
+ :: Revert DWM.exe changes
+ del %systemroot%\System32\dwm.exe
+ if exist %systemroot%\System32\dwm.exe.old takeown /F %systemroot%\System32\dwm.exe.old /A & icacls %systemroot%\System32\dwm.exe.old /grant Administrators:(F)
+ if not exist %systemroot%\System32\dwm.exe if exist %systemroot%\System32\dwm.exe.old ren %systemroot%\System32\dwm.exe.old dwm.exe
+
+ ";
+ }
+
+ private string GetEnableScriptForWindows10()
+ {
+ // Add the specific script for Windows 10
+ return @"
+ if not exist %systemroot%\ImmersiveControlPanel if exist %systemroot%\ImmersiveControlPanel.old ren %systemroot%\ImmersiveControlPanel.old ImmersiveControlPanel
+ if exist %systemroot%\ImmersiveControlPanel if exist %systemroot%\ImmersiveControlPanel.old rmdir /S /Q %systemroot%\ImmersiveControlPanel.old
+ if not exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old ren %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old windows.immersiveshell.serviceprovider.dll
+ if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old del /q %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old
+ if not exist %systemroot%\System32\UiRibbon.dll if exist %systemroot%\System32\UiRibbon.dll.old ren %systemroot%\System32\UiRibbon.dll.old UiRibbon.dll
+ if exist %systemroot%\System32\UiRibbon.dll if exist %systemroot%\System32\UiRibbon.dll.old del /q %systemroot%\System32\UiRibbon.dll.old
+ if not exist %systemroot%\System32\UiRibbonRes.dll if exist %systemroot%\System32\UiRibbonRes.dll.old ren %systemroot%\System32\UiRibbonRes.dll.old UiRibbonRes.dll
+ if exist %systemroot%\System32\UiRibbonRes.dll if exist %systemroot%\System32\UiRibbonRes.dll.old del /q %systemroot%\System32\UiRibbonRes.dll.old
+ if not exist %systemroot%\System32\Windows.UI.Logon.dll if exist %systemroot%\System32\Windows.UI.Logon.dll.old ren %systemroot%\System32\Windows.UI.Logon.dll.old Windows.UI.Logon.dll
+ if exist %systemroot%\System32\Windows.UI.Logon.dll if exist %systemroot%\System32\Windows.UI.Logon.dll.old del /q %systemroot%\System32\Windows.UI.Logon.dll.old
+ if not exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy if exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy.old ren %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy.old ShellExperienceHost_cw5n1h2txyewy
+ if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy.old rmdir /S /Q %systemroot%\ShellExperienceHost_cw5n1h2txyewy.old
+ :: Revert classic UI tweaks
+ reg delete ""HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer"" /v ""AltTabSettings"" /f
+ reg delete ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""ConsoleMode"" /f
+ reg delete ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""XamlCredUIAvailable"" /f
+ reg add ""HKCU\Software\Microsoft\Windows\DWM"" /v ""CompositionPolicy"" /t REG_DWORD /d ""1"" /f
+ :: Revert DWM.exe changes
+ del %systemroot%\System32\dwm.exe
+ if exist %systemroot%\System32\dwm.exe.old takeown /F %systemroot%\System32\dwm.exe.old /A & icacls %systemroot%\System32\dwm.exe.old /grant Administrators:(F)
+ if not exist %systemroot%\System32\dwm.exe if exist %systemroot%\System32\dwm.exe.old ren %systemroot%\System32\dwm.exe.old dwm.exe
+ ";
+ }
+
+ private string GetEnableScriptForWindows11()
+ {
+ // Add the specific script for Windows 11
+ return @"
+ if not exist %systemroot%\ImmersiveControlPanel if exist %systemroot%\ImmersiveControlPanel.old ren %systemroot%\ImmersiveControlPanel.old ImmersiveControlPanel
+ if exist %systemroot%\ImmersiveControlPanel if exist %systemroot%\ImmersiveControlPanel.old rmdir /S /Q %systemroot%\ImmersiveControlPanel.old
+ if not exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old ren %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old windows.immersiveshell.serviceprovider.dll
+ if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll if exist %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old del /q %systemroot%\System32\windows.immersiveshell.serviceprovider.dll.old
+ if not exist %systemroot%\System32\dwminit.dll if exist %systemroot%\System32\dwminit.dll.old ren %systemroot%\System32\dwminit.dll.old dwminit.dll
+ if exist %systemroot%\System32\dwminit.dll if exist %systemroot%\System32\dwminit.dll.old del /q %systemroot%\System32\dwminit.dll.old
+ if not exist %systemroot%\System32\UiRibbon.dll if exist %systemroot%\System32\UiRibbon.dll.old ren %systemroot%\System32\UiRibbon.dll.old UiRibbon.dll
+ if exist %systemroot%\System32\UiRibbon.dll if exist %systemroot%\System32\UiRibbon.dll.old del /q %systemroot%\System32\UiRibbon.dll.old
+ if not exist %systemroot%\System32\UiRibbonRes.dll if exist %systemroot%\System32\UiRibbonRes.dll.old ren %systemroot%\System32\UiRibbonRes.dll.old UiRibbonRes.dll
+ if exist %systemroot%\System32\UiRibbonRes.dll if exist %systemroot%\System32\UiRibbonRes.dll.old del /q %systemroot%\System32\UiRibbonRes.dll.old
+ if not exist %systemroot%\System32\Windows.UI.Search.dll if exist %systemroot%\System32\Windows.UI.Search.dll.old ren %systemroot%\System32\Windows.UI.Search.dll.old Windows.UI.Search.dll
+ if exist %systemroot%\System32\Windows.UI.Search.dll if exist %systemroot%\System32\Windows.UI.Search.dll.old del /q %systemroot%\System32\Windows.UI.Search.dll.old
+ if not exist %systemroot%\System32\Windows.Shell.Search.UriHandler.dll if exist %systemroot%\System32\Windows.Shell.Search.UriHandler.dll.old ren %systemroot%\System32\Windows.Shell.Search.UriHandler.dll.old Windows.Shell.Search.UriHandler.dll
+ if exist %systemroot%\System32\Windows.Shell.Search.UriHandler.dll if exist %systemroot%\System32\Windows.Shell.Search.UriHandler.dll.old del /q %systemroot%\System32\Windows.Shell.Search.UriHandler.dll.old
+ if not exist %systemroot%\System32\Windows.UI.Logon.dll if exist %systemroot%\System32\Windows.UI.Logon.dll.old ren %systemroot%\System32\Windows.UI.Logon.dll.old Windows.UI.Logon.dll
+ if exist %systemroot%\System32\Windows.UI.Logon.dll if exist %systemroot%\System32\Windows.UI.Logon.dll.old del /q %systemroot%\System32\Windows.UI.Logon.dll.old
+ if not exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy if exist %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy.old ren %systemroot%\SystemApps\ShellExperienceHost_cw5n1h2txyewy.old ShellExperienceHost_cw5n1h2txyewy
+ if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy if exist %systemroot%\ShellExperienceHost_cw5n1h2txyewy.old rmdir /S /Q %systemroot%\ShellExperienceHost_cw5n1h2txyewy.old
+ :: Revert classic UI tweaks
+ reg delete ""HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer"" /v ""AltTabSettings"" /f
+ reg delete ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""ConsoleMode"" /f
+ reg delete ""HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks"" /v ""XamlCredUIAvailable"" /f
+ reg add ""HKCU\Software\Microsoft\Windows\DWM"" /v ""CompositionPolicy"" /t REG_DWORD /d ""1"" /f
+ reg add ""HKLM\SYSTEM\CurrentControlSet\Services\Themes"" /v ""Start"" /t REG_DWORD /d ""2"" /f
+ :: Revert DWM.exe changes
+ del %systemroot%\System32\dwm.exe
+ if exist %systemroot%\System32\dwm.exe.old takeown /F %systemroot%\System32\dwm.exe.old /A & icacls %systemroot%\System32\dwm.exe.old /grant Administrators:(F)
+ if not exist %systemroot%\System32\dwm.exe if exist %systemroot%\System32\dwm.exe.old ren %systemroot%\System32\dwm.exe.old dwm.exe
+ ";
+ }
+ }
+}
diff --git a/NoMoreDWM/NoMoreDWM.csproj b/NoMoreDWM/NoMoreDWM.csproj
new file mode 100644
index 0000000..e7dda31
--- /dev/null
+++ b/NoMoreDWM/NoMoreDWM.csproj
@@ -0,0 +1,99 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {4DA82524-D71B-4045-BD26-6740262DADF7}
+ WinExe
+ NoMoreDWM
+ NoMoreDWM
+ v4.5
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+ false
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+ false
+
+
+ app.manifest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ MSBuild:Compile
+ Designer
+
+
+ App.xaml
+ Code
+
+
+ MainWindow.xaml
+ Code
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
\ No newline at end of file
diff --git a/NoMoreDWM/Properties/AssemblyInfo.cs b/NoMoreDWM/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..baf7183
--- /dev/null
+++ b/NoMoreDWM/Properties/AssemblyInfo.cs
@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("NoMoreDWM")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("NoMoreDWM")]
+[assembly: AssemblyCopyright("Copyright © 2024")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
+
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/NoMoreDWM/Properties/Resources.Designer.cs b/NoMoreDWM/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..01a5456
--- /dev/null
+++ b/NoMoreDWM/Properties/Resources.Designer.cs
@@ -0,0 +1,63 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace NoMoreDWM.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NoMoreDWM.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/NoMoreDWM/Properties/Resources.resx b/NoMoreDWM/Properties/Resources.resx
new file mode 100644
index 0000000..ffecec8
--- /dev/null
+++ b/NoMoreDWM/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/NoMoreDWM/Properties/Settings.Designer.cs b/NoMoreDWM/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..94c7211
--- /dev/null
+++ b/NoMoreDWM/Properties/Settings.Designer.cs
@@ -0,0 +1,26 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace NoMoreDWM.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.6.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default {
+ get {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/NoMoreDWM/Properties/Settings.settings b/NoMoreDWM/Properties/Settings.settings
new file mode 100644
index 0000000..8f2fd95
--- /dev/null
+++ b/NoMoreDWM/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/NoMoreDWM/app.config b/NoMoreDWM/app.config
new file mode 100644
index 0000000..801c873
--- /dev/null
+++ b/NoMoreDWM/app.config
@@ -0,0 +1,3 @@
+
+
+
diff --git a/NoMoreDWM/app.manifest b/NoMoreDWM/app.manifest
new file mode 100644
index 0000000..c2be110
--- /dev/null
+++ b/NoMoreDWM/app.manifest
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/NoMoreDWM/obj/Debug/App.g.i.cs b/NoMoreDWM/obj/Debug/App.g.i.cs
new file mode 100644
index 0000000..c48bcd8
--- /dev/null
+++ b/NoMoreDWM/obj/Debug/App.g.i.cs
@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "39EE22B86D4E243217B493E3068C29A71320ED40F330F31A6D04D69669B460F2"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using NoMoreDWM;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace NoMoreDWM {
+
+
+ ///
+ /// App
+ ///
+ public partial class App : System.Windows.Application {
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+
+ #line 5 "..\..\App.xaml"
+ this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+
+ #line default
+ #line hidden
+ }
+
+ ///
+ /// Application Entry Point.
+ ///
+ [System.STAThreadAttribute()]
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public static void Main() {
+ NoMoreDWM.App app = new NoMoreDWM.App();
+ app.InitializeComponent();
+ app.Run();
+ }
+ }
+}
+
diff --git a/NoMoreDWM/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/NoMoreDWM/obj/Debug/DesignTimeResolveAssemblyReferences.cache
new file mode 100644
index 0000000000000000000000000000000000000000..82809e698eff9606afa3c9e18771a8c0cdf9d36e
GIT binary patch
literal 205
zcmZQ$WMp7qU`%wjiU}ynPcKT$RdCD9Ni9~;sIV~8j0s9jOD#&xOHNgAEG|yXP0Gnk
zEspWcOfJeV&QB|eaRaJPEzd8?j?wdT4MFhAO!Un4jAC+&lkdR
L&)C4&(2@ZFcOOB)
literal 0
HcmV?d00001
diff --git a/NoMoreDWM/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/NoMoreDWM/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
new file mode 100644
index 0000000000000000000000000000000000000000..effff326a8de42305c2656ad3d60cb1742830866
GIT binary patch
literal 7272
zcmeHMZBH9V5VpZ=FoYD-ln`hVr%l@=a<6vGONhh=Ft|kx2-z-)ge|hZTbqTuTX%O4
z<03xvm-H7@{fX_&**+7XG@?F<4?fA`^}fv8&h9-kjzlAo$lvhbH$HcVfE;ddQwk+&
z+SujFqjphy78k~j6o<^zMJA8A$y6%2%cSDMUCAsNi$>Z=r;<6()}CZ5F7vdcb}G5!
zRc&tm%vvRJ#N3r?I$K+)E!8p^YavaubOZ&bKTV!dpmNh~cv?M#MGvWMizc&Hm10iS
zZf%@s=At%gf;JjC;nsLP&uunsQrF@Z)vP-cd(~Xcv+ca34r>Z|)Ez3(DvaI#Xe=*m
z3+#N1oh2&kOb5$~UR5!@4NTNCUU!9L>#Rn>1)HwYpkGhBHshDqPinJkPkq3zX7T7!
z|M^u(8|+m2f|~1G!nO&?nVM`^n#v-h(mdFq`an(AFLaDIq^N<1(5flP>Rf5r>Me+a
zVVa=}XMxdqXPlEVePL)zxcrF8r&o8cbJehE3k6=W6b-&XS9q+FnvKo?-=7W0JYRDldi83F>>Y+v~f943S|%B9URBL(yoIzz1k#
z=#PqBO5@0uxa5_YNWu^r0ghgZSWqL$pPr;?5`
zg|vCKcedv7V13fjT3VtD=E7oTIXlnNua_&S>-4y#s)pf*N`KvY%h^SvgAffPih|P=
z2J>4UQ++-_g8&U9h6VxJuNP+}iYPcf3}h@G!{!JQfCG{E9U$;EiX@I?49Pf)7Z
zgiHWgJ1umO)0-l|=q8n{9Dv-ivAt0WFl6d@-dIR=0cZzoZk(Kvd%))?_on=d0`ys4
zwH)pu7NY><%1U_BWM#=3LY24079!7gTjyG$dRSg(Rj&?I0qQIPGAb}7?Bf6i_h67=
zQuBbtKSS*&fy{oaU>D`1q9g(1Q#hUsEJ$Mi6!gdZ8J}azQQRi?p*045X(OA?W|re$
z!0*Ud0{w~~GL6J&a@VoQ18Bz#%eKjk-(n{$fv)$JLcG6rQ&&JXV3>Y7KxTo@`v2kM
zP?y&LV3RrERJtiAfSe5`HNf$5k!cOUPZ^L$_zm(UaNY;bFsTmdNz%_&lFv_GFTN-T
zTbAs^3$p0NRj?x;M_3uRrQAi9zK0cf|y#kV%~E1SKp-X
zLUP?Z?pmU$)~NDtk{G^*2jFo49{XA*>38nsLz{glPdRF2U-94A=>BoLP6{J`#e#Rp
zHiQ-8e=TE$5%>Mx{61&OdzI1A_;a}Rx=#X=5UiP#7eI<3-0um@aC`|bp%KeN
z)jNvWj-LXZS0#$+&!yf3=0o@-FegH7Neal!Y3|B0{2BQkMyF1H;;zQRD^_GT;pm(Z
z1NvuAOIO#JTW91481F}#l?FZ&rv=(Xpp7-?Gm=5p;MyByURCaPGOq;YE|^J@S3ttp
uE0P7qdm#ito|@Ex+#=zpY#`*0zw;Ot_zeF!xW@kLkFLQr7W@%W8UF{h(Sd&e
literal 0
HcmV?d00001
diff --git a/NoMoreDWM/obj/Debug/MainWindow.g.i.cs b/NoMoreDWM/obj/Debug/MainWindow.g.i.cs
new file mode 100644
index 0000000..10e3f49
--- /dev/null
+++ b/NoMoreDWM/obj/Debug/MainWindow.g.i.cs
@@ -0,0 +1,111 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6277011884F2B03DB82840D1F0D93C22BD9C514D8D39C77A36925D1B30A0E586"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace NoMoreDWM {
+
+
+ ///
+ /// MainWindow
+ ///
+ public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+
+
+ #line 12 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.Button btnDisableDWM;
+
+ #line default
+ #line hidden
+
+
+ #line 25 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.Button btnEnableDWM;
+
+ #line default
+ #line hidden
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Uri resourceLocater = new System.Uri("/NoMoreDWM;component/mainwindow.xaml", System.UriKind.Relative);
+
+ #line 1 "..\..\MainWindow.xaml"
+ System.Windows.Application.LoadComponent(this, resourceLocater);
+
+ #line default
+ #line hidden
+ }
+
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+ switch (connectionId)
+ {
+ case 1:
+ this.btnDisableDWM = ((System.Windows.Controls.Button)(target));
+
+ #line 23 "..\..\MainWindow.xaml"
+ this.btnDisableDWM.Click += new System.Windows.RoutedEventHandler(this.DisableDWM_Click);
+
+ #line default
+ #line hidden
+ return;
+ case 2:
+ this.btnEnableDWM = ((System.Windows.Controls.Button)(target));
+
+ #line 36 "..\..\MainWindow.xaml"
+ this.btnEnableDWM.Click += new System.Windows.RoutedEventHandler(this.EnableDWM_Click);
+
+ #line default
+ #line hidden
+ return;
+ }
+ this._contentLoaded = true;
+ }
+ }
+}
+
diff --git a/NoMoreDWM/obj/Debug/NoMoreDWM.csproj.FileListAbsolute.txt b/NoMoreDWM/obj/Debug/NoMoreDWM.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..e69de29
diff --git a/NoMoreDWM/obj/Debug/NoMoreDWM_MarkupCompile.i.cache b/NoMoreDWM/obj/Debug/NoMoreDWM_MarkupCompile.i.cache
new file mode 100644
index 0000000..b6132b2
--- /dev/null
+++ b/NoMoreDWM/obj/Debug/NoMoreDWM_MarkupCompile.i.cache
@@ -0,0 +1,20 @@
+NoMoreDWM
+
+
+winexe
+C#
+.cs
+C:\Users\Administrator\source\repos\NoMoreDWM\NoMoreDWM\obj\Debug\
+NoMoreDWM
+none
+false
+DEBUG;TRACE
+C:\Users\Administrator\source\repos\NoMoreDWM\NoMoreDWM\App.xaml
+1219584333
+
+61085293749
+12-1982166320
+MainWindow.xaml;
+
+False
+
diff --git a/NoMoreDWM/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/NoMoreDWM/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
new file mode 100644
index 0000000000000000000000000000000000000000..266918f8ebb761fcc89038aad34c7f4d8f6e17e3
GIT binary patch
literal 4096
zcmeHKU1%KF75-*+wOX%ZSzd3AP11HGwYDrbQwhasQ#VFG>nLinwya%SD1^qdvsdd$
zX6J5ZW-YHxQx*3IlTcCu34uU={FG3NDJ2ah5JO7e0)@V{eK6!DBoBo)Po>oT?wwif
zx(*?E4Y}HT?)kgto^$TGcdjarJ&z24Ec>lnz#AM@o73>)!4}0MU;e`gez)VDu{VrI
z-x;f&_adtu%4X=aEY}GF8C!K>g`L3i0;_zgYPDoT*t>QWzLJ_=IRQLsm>7Ed&5hn_
zH!*JQG^T;O$T1Ucaf+kGKF1D>YMe6Vw`#o+=SZY;GMM|3QdPhHn39UccH=N`DnUOQ
z&LwVqwD4oN7LXqh=Se?2K-;mn7?a*#AfRk8R#LiIz&SeO9Y6t7$5X`2e2=!WQwPmShRWX*_D-94fTqdc
zgJ;wxmi}uLa$g%qNLKsL+)HzECzT}&pb+gM*g3qV^b+m6jv%kfVehm7s;QLF4y!m@
zID*{NILs|YO!ed>D5up_ZcZ|Rbn$G&Ky#D3NyI}mv!zsMc%k~81tZOXD!~i)+0*vy
z^z4jsnmO_b-{Yba&j2+V_t__^ap(ojNNL>20dpKD&QyWnq~0c$&McS78zub;qnudq
zWu3HYG-a%P;a3I|2mITZ#l9r}C6e?@*S3;z8tAMpXD+GcZJ%8wQ#9}=L*WbzzVWu1
z!*d!QGOnAu@gY@mxBW=6r?#0&Tvo+bWITqj)C{LALM#Gf+Dl)jAXMghkR
z1%H6AlV5|HJFVfl%sO?RBVVnZc%XA=jN&&K%N!t&Tv9dqqbQ{~iucV-=3e5AhqC>d
zOlF?(4&xvWnQPp(yUoW4pT>6yE!44MDf>U(e~l{}Sl_0Ubx%`QQdz927xJ6t24!!i
z)HK?e`zXN!Nh+w^|Sr2nwPc5243SnT{8{(qkK3(SioV8
z&l8SfnQ$LYYfhK&9?WQbUBjz9s#Ca%$1^i<$hn`nRCa!ey;#B_6!8<|Fc$H=VY9Y>
z3Y+|w2=B)0akA4czmg47^LCfri*{I)1zyM6naN0;`=M_FAIWZHtGUpy3NFiC9q&
zg|d}$6p5yYpIGF~PACu!;Gu|QCv-(mHs5ahp6kS(45}iI)mdF|B7qYPFP7m#C^sXg
z?u%;d#ALSWqR|kI`Ix7=-XUjEw%VRA!X*)ikSYVBZPp^cZT%T#QSUUHB0MRBGm!{y
z7jCPaiJayglawRd8vpNMU$81Rs?LUpyQ@rW)aNI@>QGmO?_AW_fIQ8uQlqHu`Ci=Z
z&%WUJ9l_0sV$rgdjtoQ)bN7Ugl~A@t7<(eJSJV7Pc3DJTlUcFd$Zq()>Yqq4T?4(H
zsyG48iZJ31^_LGeyk>_9A7C!==5&1T(rrxU!WXVqOLu%Z*pRw9dY;lga~<|=H$+(`
zA*!8)?XnOE^^nG2_MB!Qqu6t!-n=w>IyGuuRfHEjSM=q*#2~2vR+>s)gp;x&Ls4F<
z*!?u3SBt24ZYU$U5z{csC~*94ZY+a&TUR
z9uGC<4a}xn-z%HQu1V=fHb3w(X!>1s>oj`8g^uSpM3|rX2A>H01J(^Z(%;LoUes~?
zYTRjf(oU`#T1xMq?Ss=}R9P#&c!*V%-YHUBzCW?dfYfV;@5&?=jlY+^-xOi0N0Ftl
zJ6rFamq?yilwsNTD~=Z=_puQA*edC*uhNEoG2dzBbIxZj16K0CMd@3gxyU{b=o4h%
Ee`6h7+W-In
literal 0
HcmV?d00001
diff --git a/NoMoreDWM/obj/Release/App.g.i.cs b/NoMoreDWM/obj/Release/App.g.i.cs
new file mode 100644
index 0000000..c48bcd8
--- /dev/null
+++ b/NoMoreDWM/obj/Release/App.g.i.cs
@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "39EE22B86D4E243217B493E3068C29A71320ED40F330F31A6D04D69669B460F2"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using NoMoreDWM;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace NoMoreDWM {
+
+
+ ///
+ /// App
+ ///
+ public partial class App : System.Windows.Application {
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+
+ #line 5 "..\..\App.xaml"
+ this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+
+ #line default
+ #line hidden
+ }
+
+ ///
+ /// Application Entry Point.
+ ///
+ [System.STAThreadAttribute()]
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public static void Main() {
+ NoMoreDWM.App app = new NoMoreDWM.App();
+ app.InitializeComponent();
+ app.Run();
+ }
+ }
+}
+
diff --git a/NoMoreDWM/obj/Release/MainWindow.g.i.cs b/NoMoreDWM/obj/Release/MainWindow.g.i.cs
new file mode 100644
index 0000000..10e3f49
--- /dev/null
+++ b/NoMoreDWM/obj/Release/MainWindow.g.i.cs
@@ -0,0 +1,111 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6277011884F2B03DB82840D1F0D93C22BD9C514D8D39C77A36925D1B30A0E586"
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace NoMoreDWM {
+
+
+ ///
+ /// MainWindow
+ ///
+ public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+
+
+ #line 12 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.Button btnDisableDWM;
+
+ #line default
+ #line hidden
+
+
+ #line 25 "..\..\MainWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal System.Windows.Controls.Button btnEnableDWM;
+
+ #line default
+ #line hidden
+
+ private bool _contentLoaded;
+
+ ///
+ /// InitializeComponent
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ public void InitializeComponent() {
+ if (_contentLoaded) {
+ return;
+ }
+ _contentLoaded = true;
+ System.Uri resourceLocater = new System.Uri("/NoMoreDWM;component/mainwindow.xaml", System.UriKind.Relative);
+
+ #line 1 "..\..\MainWindow.xaml"
+ System.Windows.Application.LoadComponent(this, resourceLocater);
+
+ #line default
+ #line hidden
+ }
+
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+ switch (connectionId)
+ {
+ case 1:
+ this.btnDisableDWM = ((System.Windows.Controls.Button)(target));
+
+ #line 23 "..\..\MainWindow.xaml"
+ this.btnDisableDWM.Click += new System.Windows.RoutedEventHandler(this.DisableDWM_Click);
+
+ #line default
+ #line hidden
+ return;
+ case 2:
+ this.btnEnableDWM = ((System.Windows.Controls.Button)(target));
+
+ #line 36 "..\..\MainWindow.xaml"
+ this.btnEnableDWM.Click += new System.Windows.RoutedEventHandler(this.EnableDWM_Click);
+
+ #line default
+ #line hidden
+ return;
+ }
+ this._contentLoaded = true;
+ }
+ }
+}
+
diff --git a/NoMoreDWM/obj/Release/NoMoreDWM.csproj.FileListAbsolute.txt b/NoMoreDWM/obj/Release/NoMoreDWM.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..e69de29
diff --git a/NoMoreDWM/obj/Release/TempPE/Properties.Resources.Designer.cs.dll b/NoMoreDWM/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
new file mode 100644
index 0000000000000000000000000000000000000000..5075a82b8a306728e27aa154ae8d9d54f562789b
GIT binary patch
literal 4096
zcmeHKUu+yl8UO9>`Fy!Fj&nJpL@ltfA#ohK*mBcSN-O`l)HU=H$9IY4Qqk<~jW0|0
zc8=Y>B$tR{6ri%GP*Eii5)YI-fdJ(JL4_g_34{<*B?J;L<)IQU6+9r7J|RT-&Fr4<
zLaM5LtvbH>=KD9_eBU?U%#N#1y$B0Hj{Wv+;1!Ol&1?A1V2k3hkN#>5Ki~E0;a7|&
zUp-vE;Kz0+lC8*X+nyVSGO-)Nj=G`khj!(3&2G!4aQ5seek?P+dJ=fjFmdzuH#hsM
zy^aZcw=o0ULynnpOVb=}_IY+-T;r4}zg6pxI8P#*V`2X5N>%*^V@4_#+pS~3=@fl?
zIG?)l_QH4I+CX7QTp<0#5bY%5azgrGk$|${SV`$-1LvJc1k%fVm?vAsHpV{G=7Gf_
z@;#w%F@DvQZze`iJ`DVXjvJc$-ob=9wF@X>`mqc#tuND7Zu*Eh#ZdX1#{L--57RXH
z`|zCF#PWZQV*V2oh{)>vk$Y)Q?WVG10Tkms1iMGKlwPWR&v6t~IqaV?KsA*T+F=#v
zipP{=5Qd*f0-ox(zUH*oCZ3p%b826c{^uU$rKIz&QLf5Lty;I
z%;N&8}Vn&3Z>t}4Wo!h
z39+@$Pg
zMs46(Qh&}Ufexv^YU(?MRqG->`In~B6-@j`Q{O)LBlD{E*uamuPuER@{wN;~5f*Vw
z;|ql2SRp)sGn&&QybrS)-_UTIM|B$8c-oqUOU{GLrLyxf_G1}GQNr`aF)ZOl!(nZI
z3l90;CA=5EAa@eKCM*)JXdO>;Jk9ZN9KXdi%;6t|k5K2DmR`@`9PT$J@F>^MG3F6n
zIakfE0O;Xsgmr715$4EO_rM5s@`NV$VidV8D%{cj$<5?(*=eWL(Pq1oS58Y(2|iPm
z&2AtbLp%0l6!;C)dZBkAlA(V^G|?2BZZ}9)!Z>k5PhhPZCVpGgdmZtF8#V)hWsxZA
z@kq8ajv~<#$umow*^LC^Av_YX>_(pG%N9DF!1vt5mtjpLi8`x`ZY*%J=_fK;jO3-*
zZ3Lp0xCxoi9cI1sFf&6>L@lHM8<8xQ!YuR7E<5xAE%HYCq-tJElJ_<^7F
z2D2}^L052d;zYC^r6WTTCfq#{U^S8*5hcEeowY2#u~QMT-(prAFLs(ip!&N~%+^4E
zr>bshSA4e>$~f`8xIZt;o=%OLR};}i-xC9QKQTxvfR(0_7vq$y%1Bh!
ztIi;e=+`2uz8A?@ZYDI$G78KfU?T=kI$txA4|m{L(gZ
zwqX=38^#Ecefu>0@Q7_1V`CbBcy!b4kSizw!3hP*1tWV{eMH^)
zb@RY_$1oBdqcZT2Ly;3)Kt%Mgu
z