📄 action.cs
字号:
{
}
}
public static void Delcb_6()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\",true);
rk.SetValue ("IPEnableRouter",0);
rk.SetValue ("EnableSecurityFilters",0);
rk.Close ();
}
catch
{
}
}
//[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
//"EnablePrefetcher"=dword:00000001
public static void setcb_7()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\",true);
rk.SetValue ("EnablePrefetcher",1);
rk.Close ();
}
catch
{
}
}
public static void Delcb_7()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\",true);
rk.SetValue ("EnablePrefetcher",3);
rk.Close ();
}
catch
{
}
}
//[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug]
//"Auto"="0"
public static void setcb_8()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\",true);
rk.SetValue ("Auto","0");
rk.Close ();
}
catch
{
}
}
public static void Delcb_8()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\",true);
rk.SetValue ("Auto","1");
rk.Close ();
}
catch
{
}
}
//[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders]
public static void setcb_9()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders\",true);
string [] temp =rk.GetSubKeyNames();
foreach(string tt in temp)
{
rk.DeleteSubKeyTree (tt);
}
rk.Close ();
}
catch
{
}
}
//[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
//"ShowStatusBar"=dword:00000001
public static void setcb_10()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\",true);
rk.SetValue ("ShowStatusBar",1);
rk.Close ();
}
catch
{
}
}
public static void Delcb_10()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\",true);
rk.SetValue ("ShowStatusBar",0);
rk.Close ();
}
catch
{
}
}
//[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
//"WaitToKillServiceTimeout"="500"
public static void setcb_11()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SYSTEM\CurrentControlSet\Control\",true);
rk.SetValue ("WaitToKillServiceTimeout","500");
rk.Close ();
}
catch
{
}
}
public static void Delcb_11()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SYSTEM\CurrentControlSet\Control\",true);
rk.DeleteValue ("WaitToKillServiceTimeout",true);
rk.Close ();
}
catch
{
}
}
//[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
//"NoFileMenu"=dword:00000001
//"NoShellSearchButton"=dword:00000001
public static void setcb_12()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\",true);
rk.SetValue ("NoFileMenu",1);
rk.SetValue ("NoShellSearchButton",1);
rk.Close ();
}
catch
{
}
}
public static void Delcb_12()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\",true);
rk.SetValue ("NoFileMenu",0);
rk.SetValue ("NoShellSearchButton",0);
rk.Close ();
}
catch
{
}
}
//[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
//"Enable"="Y"
public static void setcb_13()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction\",true);
rk.SetValue ("Enable","Y");
rk.Close ();
}
catch
{
}
}
public static void Delcb_13()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction\",true);
rk.SetValue ("Enable","N");
rk.Close ();
}
catch
{
}
}
//[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
//"ClearRecentDocsOnEixt"=hex:01,00,00,00
public static void setcb_14()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\",true);
byte [] by =new byte[4];
by[0]=01;
by[1]=00;
by[2]=00;
by[3]=00;
rk.SetValue ("ClearRecentDocsOnEixt",by);
rk.Close ();
}
catch
{
}
}
public static void Delcb_14()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\",true);
rk.DeleteValue("ClearRecentDocsOnEixt",true);
rk.Close ();
}
catch
{
}
}
//[HKEY_CURRENT_USER\Control Panel\Desktop]
//"HungAppTimeout"="200"
//"WaitToKillAppTimeout"="1000"
public static void setcb_15()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Control Panel\Desktop\",true);
rk.SetValue ("HungAppTimeout","200");
rk.SetValue ("WaitToKillAppTimeout","1000");
rk.Close ();
}
catch
{
}
}
public static void Delcb_15()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Control Panel\Desktop\",true);
rk.DeleteValue ("HungAppTimeout",true);
rk.DeleteValue ("WaitToKillAppTimeout",true);
rk.Close ();
}
catch
{
}
}
//[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Vxd\BIOS]
//"CPUPriority"=dword:00000001
//"PCIConcur"=dword:00000001
//"FastDRAM"=dword:00000001
//"AGPConcur"=dword:00000001
public static void setcb_16()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SYSTEM\CurrentControlSet\Services\Vxd\BIOS\",true);
rk.SetValue ("CPUPriority",1);
rk.SetValue ("PCIConcur",1);
rk.SetValue ("FastDRAM",1);
rk.SetValue ("AGPConcur",1);
rk.Close ();
}
catch
{
}
}
public static void Delcb_16()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SYSTEM\CurrentControlSet\Services\Vxd\BIOS\",true);
rk.SetValue ("CPUPriority",0);
rk.SetValue ("PCIConcur",0);
rk.SetValue ("FastDRAM",0);
rk.SetValue ("AGPConcur",0);
rk.Close ();
}
catch
{
}
}
//[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
//"MaxConnectionsPer1_0Server"=dword:00000008
//"MaxConnectionsPerServer"=dword:00000008
public static void setcb_17()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Internet Settings\",true);
rk.SetValue ("MaxConnectionsPer1_0Server",8);
rk.SetValue ("MaxConnectionsPerServer",8);
rk.Close ();
}
catch
{
}
}
public static void Delcb_17()
{
try
{
RegistryKey rk=Registry.CurrentUser.OpenSubKey (@"Software\Microsoft\Windows\CurrentVersion\Internet Settings\",true);
rk.DeleteValue ("MaxConnectionsPer1_0Server",true);
rk.DeleteValue ("MaxConnectionsPerServer",true);
rk.Close ();
}
catch
{
}
}
//[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
//"FontSmoothing"="2"
//"FontSmoothingType"=dword:00000002
public static void setcb_18()
{
try
{
RegistryKey rk=Registry.Users.OpenSubKey (@".DEFAULT\Control Panel\Desktop\",true);
rk.SetValue ("FontSmoothing","2");
rk.SetValue ("FontSmoothingType",2);
rk.Close ();
}
catch
{
}
}
public static void Delcb_18()
{
try
{
RegistryKey rk=Registry.Users.OpenSubKey (@".DEFAULT\Control Panel\Desktop\",true);
rk.DeleteValue ("FontSmoothing",true);
rk.DeleteValue ("FontSmoothingType",true);
rk.Close ();
}
catch
{
}
}
//[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer]
//"NoLowDiskSpaceChecks"=dword:00000001
public static void setcb_19()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\",true);
rk.SetValue ("NoLowDiskSpaceChecks",1);
rk.Close ();
}
catch
{
}
}
public static void Delcb_19()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\",true);
rk.SetValue ("NoLowDiskSpaceChecks",0);
rk.Close ();
}
catch
{
}
}
//[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
//"LargePageMinimum"=dword:ffffffff
public static void setcb_20()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\",true);
rk.SetValue ("LargePageMinimum",(object)int.Parse ("ffffffff",System.Globalization.NumberStyles.AllowHexSpecifier));
rk.Close ();
}
catch
{
}
}
public static void Delcb_20()
{
try
{
RegistryKey rk=Registry.LocalMachine.OpenSubKey (@"SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\",true);
rk.DeleteValue ("LargePageMinimum",true);
rk.Close ();
}
catch
{
}
}
//[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers]
//[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]
//@="{7BA4C740-9E81-11CF-99D3-00AA004AE837}"
//[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To]
//@="{C2FBB631-2971-11D1-A18c-00C04FD75D13}"
public static void setcb_21()
{
try
{
RegistryKey rk=Registry.ClassesRoot.OpenSubKey (@"AllFilesystemObjects\shellex\ContextMenuHandlers\",true);
rk.CreateSubKey ("Copy To");
rk.CreateSubKey ("Move To");
RegistryKey rk2=Registry.ClassesRoot.OpenSubKey (@"AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To\",true);
rk2.SetValue ("","{7BA4C740-9E81-11CF-99D3-00AA004AE837}");
rk2.Close ();
RegistryKey rk3=Registry.ClassesRoot.OpenSubKey (@"AllFilesystemObjects\shellex\ContextMenuHandlers\Move To\",true);
rk3.SetValue ("","{C2FBB631-2971-11D1-A18c-00C04FD75D13}");
rk3.Close ();
rk.Close ();
}
catch
{
}
}
public static void Delcb_21()
{
try
{
RegistryKey rk=Registry.ClassesRoot.OpenSubKey (@"AllFilesystemObjects\shellex\ContextMenuHandlers\",true);
rk.DeleteSubKeyTree ("Copy To");
rk.DeleteSubKeyTree ("Move To");
rk.Close ();
}
catch
{
}
}
//[HKEY_CLASSES_ROOT\exefile\shell\open\command]
//@="\"%1\" %*"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -