// SetDisableAeroShake.cs // // Disable Aero Shake. // Stops shaking a window from minimizing every other open window. // // Usage: dotnet new console -o SetDisableAeroShake, replace Program.cs with this // file, then dotnet run. using System; using Microsoft.Win32; using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"); key.SetValue("DisallowShaking", 1, RegistryValueKind.DWord); Console.WriteLine("Disable Aero Shake applied.");