搜索多窗口显隐.
#include <GUIConstantsEx.au3>
#include <GuiButton.au3>
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ComboConstants.au3>
#include <GuiComboBoxEx.au3>
#include <TabConstants.au3>
#include <StaticConstants.au3>
#include <GuiListView.au3>
#include <GuiListView.au3>
#include <Constants.au3>
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ComboConstants.au3>
#include <GuiComboBoxEx.au3>
#include <ListviewConstants.au3>
#include <GuiListView.au3>
#include <ListBoxConstants.au3>
#include <StaticConstants.au3>
#include <Process.au3>
#include <GuiListView.au3>
#include <Constants.au3>
Dim $tab5buttonview1, $tab5buttonview2, $aItem, $tab5list1, $WinMain
$Form1 = GUICreate("工具", 200, 200, 220, 128)
$Button1 = GUICtrlCreateButton("系统优化", 40, 80, 150, 25, 0)
youhua()
GUISetState(@SW_HIDE, $WinMain)
GUISetState(@SW_SHOW, $Form1)
While 1
$nMsg = GUIGetMsg(1)
Select
Case $nMsg[1] = $WinMain
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $tab5buttonview1
_tab5buttonview1()
Case $tab5buttonview2
_tab5buttonview2()
If GUICtrlRead($tab5buttonview2) = "选择推荐" Then
GUICtrlSetData($tab5buttonview2, "取消推荐")
ElseIf GUICtrlRead($tab5buttonview2) = "取消推荐" Then
GUICtrlSetData($tab5buttonview2, "选择推荐")
EndIf
EndSwitch
Case $nMsg[1] = $Form1
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUISetState(@SW_HIDE, $Form1)
GUISetState(@SW_SHOW, $WinMain)
EndSwitch
EndSelect
WEnd
Func youhua()
$WinMain = GUICreate("系统优化", 328, 285)
$tab5list1 = GUICtrlCreateListView("", 5, 5, 320, 235)
_GUICtrlListView_SetExtendedListViewStyle($tab5list1, BitOR($LVS_EX_DOUBLEBUFFER, $LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES, $LVS_EX_CHECKBOXES, $LVS_EX_SUBITEMIMAGES))
_GUICtrlListView_AddColumn($tab5list1, "系统优化", 360)
_GUICtrlListView_AddItem($tab5list1, "注销zipfldr.dll", 0)
_GUICtrlListView_AddItem($tab5list1, "关闭平滑字体", 1)
_GUICtrlListView_AddItem($tab5list1, "关闭Dr.Warson", 2)
_GUICtrlListView_AddItem($tab5list1, "关闭所有驱动器自动播放", 3)
_GUICtrlListView_AddItem($tab5list1, "关闭开始菜单上的气球提示", 4)
_GUICtrlListView_AddItem($tab5list1, "减少开机滚动条时间", 5)
_GUICtrlListView_AddItem($tab5list1, "减少开机滚动条滚动次数", 6)
_GUICtrlListView_AddItem($tab5list1, "加快关机速度", 7)
_GUICtrlListView_AddItem($tab5list1, "加快窗口显示速度", 8)
_GUICtrlListView_AddItem($tab5list1, "加快开机速度副值", 9)
_GUICtrlListView_AddItem($tab5list1, "加快菜单显示速度", 10)
_GUICtrlListView_AddItem($tab5list1, "加快局域网访问速度", 11)
_GUICtrlListView_AddItem($tab5list1, "加快程序的运行速度", 12)
_GUICtrlListView_AddItem($tab5list1, "加快预读能力改善开机速度", 13)
_GUICtrlListView_AddItem($tab5list1, "自动关闭停止响应的程序", 14)
_GUICtrlListView_AddItem($tab5list1, "运行CMD时不自动加载Conime", 15)
_GUICtrlListView_AddItem($tab5list1, "启动预读和程序预读减少启动时间", 16)
_GUICtrlListView_AddItem($tab5list1, "不显示共享文档和用户文档", 17)
_GUICtrlListView_AddItem($tab5list1, "去掉快捷方式箭头及快捷方式到", 18)
_GUICtrlListView_AddItem($tab5list1, "去掉图标快捷方式的字样", 19)
_GUICtrlListView_AddItem($tab5list1, "取消快捷方式的箭头", 20)
_GUICtrlListView_AddItem($tab5list1, "去掉开始菜单中Windows Update", 21)
_GUICtrlListView_AddItem($tab5list1, "去掉Windows XP的自动更新功能", 22)
_GUICtrlListView_AddItem($tab5list1, "去掉右键新建菜单中的公文包", 23)
_GUICtrlListView_AddItem($tab5list1, "去掉右键新建菜单中的BMP", 24)
_GUICtrlListView_AddItem($tab5list1, "去掉右键新建菜单中的RTF", 25)
_GUICtrlListView_AddItem($tab5list1, "去掉右键新建菜单中的DOC", 26)
_GUICtrlListView_AddItem($tab5list1, "去掉右键新建菜单中的WAV", 27)
_GUICtrlListView_AddItem($tab5list1, "删除在开始菜单中的文档", 28)
_GUICtrlListView_AddItem($tab5list1, "让欢迎窗口更清晰", 29)
_GUICtrlListView_AddItem($tab5list1, "完全禁用系统还原", 30)
_GUICtrlListView_AddItem($tab5list1, "不加载多余的DLL文件", 31)
_GUICtrlListView_AddItem($tab5list1, "不发送管理警报", 32)
_GUICtrlListView_AddItem($tab5list1, "不写入调试信息", 33)
_GUICtrlListView_AddItem($tab5list1, "设定蓝屏时自启动", 34)
_GUICtrlListView_AddItem($tab5list1, "去除IPC$管理", 35)
_GUICtrlListView_AddItem($tab5list1, "关闭XP文件保护", 36)
_GUICtrlListView_AddItem($tab5list1, "不保留网页历史中的访问记录", 37)
_GUICtrlListView_AddItem($tab5list1, "不将系统失败事件写入系统日志", 38)
_GUICtrlListView_AddItem($tab5list1, "取消图片及传真检视器的预设值", 39)
_GUICtrlListView_AddItem($tab5list1, "清除共享文件夹", 40)
_GUICtrlListView_AddItem($tab5list1, "禁止保留文档记录", 41)
_GUICtrlListView_AddItem($tab5list1, "禁用桌面清理向导", 42)
_GUICtrlListView_AddItem($tab5list1, "禁止Windows漫游气球提醒", 43)
_GUICtrlListView_AddItem($tab5list1, "禁止用户密码的自动完成功能", 44)
_GUICtrlListView_AddItem($tab5list1, "支持137G以上的硬盘", 45)
_GUICtrlListView_AddItem($tab5list1, "EXE关联文件修复", 46)
_GUICtrlListView_AddItem($tab5list1, "关闭系统默认共享", 47)
_GUICtrlListView_AddItem($tab5list1, "恢复磁盘扫描", 48)
_GUICtrlListView_AddItem($tab5list1, "彻底关闭磁盘扫描", 49)
_GUICtrlListView_AddItem($tab5list1, "开启CPU(512k)二级缓存", 50)
_GUICtrlListView_AddItem($tab5list1, "开启CPU(1024k)二级缓存", 51)
_GUICtrlListView_AddItem($tab5list1, "右键加入用记事本打开", 52)
_GUICtrlListView_AddItem($tab5list1, "在右键添加复制到和移动到选项", 53)
_GUICtrlListView_AddItem($tab5list1, "提升性能去除平滑滚动视觉效果", 54)
_GUICtrlListView_AddItem($tab5list1, "修复AMD处理器的AGP内存分页问题", 55)
_GUICtrlListView_AddItem($tab5list1, "限制IPC$缺省共享", 56)
_GUICtrlListView_AddItem($tab5list1, "禁止使用Windows快捷键", 57)
_GUICtrlListView_AddItem($tab5list1, "禁用移动磁盘自动运行", 58)
_GUICtrlListView_AddItem($tab5list1, "禁用错误报告,但在发生严重错误时通知我", 59)
_GUICtrlListView_AddItem($tab5list1, "禁用错误报告,但在发生严重错误时通知我、不选勾 ", 60)
_GUICtrlListView_AddItem($tab5list1, "从资源管理器中删除安全选项卡", 61)
_GUICtrlListView_AddItem($tab5list1, "关闭分组相似任务栏按钮", 62)
_GUICtrlListView_AddItem($tab5list1, "关闭磁盘空间不足的警告", 63)
_GUICtrlListView_AddItem($tab5list1, "打开磁盘空间不足的警告", 64)
_GUICtrlListView_AddItem($tab5list1, "设置CD-ROM的缓存区", 65)
_GUICtrlListView_AddItem($tab5list1, "防DDos注册表", 66)
_GUICtrlListView_AddItem($tab5list1, "威金注册表(免疫)", 67)
_GUICtrlListView_AddItem($tab5list1, "让IE6可以9线程下载", 68)
_GUICtrlListView_AddItem($tab5list1, "消除任务栏SATA硬盘图标", 69)
_GUICtrlListView_AddItem($tab5list1, "解除IE无法查看源文件", 70)
_GUICtrlListView_AddItem($tab5list1, "从资源管理器彻底隐藏文件", 71)
_GUICtrlListView_AddItem($tab5list1, "屏蔽资源管理器中的文件菜单", 72)
_GUICtrlListView_AddItem($tab5list1, "屏蔽任务栏中的右键菜单", 73)
_GUICtrlListView_AddItem($tab5list1, "不显示上次登录的用户名", 74)
_GUICtrlListView_AddItem($tab5list1, "显示上次用户登录的用户名", 75)
_GUICtrlListView_AddItem($tab5list1, "屏蔽最大化/化关闭上的提示信息", 76)
_GUICtrlListView_AddItem($tab5list1, "屏蔽按Ctrl+Alt+Del中的注销命令", 77)
_GUICtrlListView_AddItem($tab5list1, "屏蔽资源管理器中的搜索菜单", 78)
_GUICtrlListView_AddItem($tab5list1, "删除IE分级审查密码", 79)
_GUICtrlListView_AddItem($tab5list1, "开启硬件优化", 80)
_GUICtrlListView_AddItem($tab5list1, "取消系统自动登陆", 81)
_GUICtrlListView_AddItem($tab5list1, "设置系统自动登陆", 82)
_GUICtrlListView_AddItem($tab5list1, "千兆网卡优化注册表", 83)
_GUICtrlListView_AddItem($tab5list1, "解决2003系统启动时至少有一个服务或驱动程序产生错误", 84)
$tab5buttonview1 = GUICtrlCreateButton("确 定", 125, 250, 70, 25, $BS_FLAT)
$tab5buttonview2 = GUICtrlCreateButton("选择推荐", 15, 250, 70, 25, $BS_FLAT)
GUICtrlSetTip($tab5buttonview2, "推荐项只基于部分系统优化设置方面,当然您也可以在添加")
$tab4checkbutton3 = GUICtrlCreateButton("刷新注册表", 240, 250, 70, 25, $BS_FLAT)
_GUICtrlListView_SetColumnWidth($tab5list1, 0, $LVSCW_AUTOSIZE)
;~ GUISetState(@SW_SHOW)
EndFunc ;==>youhua
;~ While 1
;~
;~ $nMsg = GUIGetMsg()
;~ Switch $nMsg
;~ Case $GUI_EVENT_CLOSE
;~ Exit
;~ Case $tab5buttonview1
;~ _tab5buttonview1()
;~ Case $tab5buttonview2
;~ _tab5buttonview2()
;~ If GUICtrlRead($tab5buttonview2) = "选择推荐" Then
;~ GUICtrlSetData($tab5buttonview2, "取消推荐")
;~ ElseIf GUICtrlRead($tab5buttonview2) = "取消推荐" Then
;~ GUICtrlSetData($tab5buttonview2, "选择推荐")
;~ EndIf
;~ ;===========================================Tab
;~ EndSwitch
;~ WEnd
Func _tab4checkbutton3() ;;;;==========刷新注册表
_RunDOS("RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters")
_RunDOS("gpupdate /force /wait:0")
EndFunc ;==>_tab4checkbutton3
Func _tab5buttonview1()
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 0);注销zipfldr.dll
If $aItem = 1 Then
_RunDOS("regsvr32 /u zipfldr.dll")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 1);关闭平滑字体
If $aItem = 1 Then
RegDelete("HKEY_CURRENT_USER\Control Panel\Desktop", "FontSmoothing")
RegDelete("HKEY_CURRENT_USER\Control Panel\Desktop", "FontSmoothingType")
RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing")
RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing", "DefaultValue")
RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing", "DefaultApplied")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Visual\FontSmooth")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing")
RegDelete("HKEY_USERS\.DEFAULT\Control Panel\Desktop", "FontSmoothing")
RegDelete("HKEY_USERS\.DEFAULT\Control Panel\Desktop", "FontSmoothingType")
RegDelete("HKEY_USERS\S-1-5-19\Control Panel\Desktop", "FontSmoothing")
RegDelete("HKEY_USERS\S-1-5-19\Control Panel\Desktop", "FontSmoothingType")
RegDelete("HKEY_USERS\S-1-5-20\Control Panel\Desktop", "FontSmoothing")
RegDelete("HKEY_USERS\S-1-5-20\Control Panel\Desktop", "FontSmoothingType")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 2);关闭Dr.Warson
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug", "Auto", "REG_SZ", "0")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug", "Debugger", "REG_SZ", "drwtsn32 -p %ld -e %ld -g")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug", "UserDebuggerHotKey", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 3);关闭所有驱动器自动播放
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom", "Autorun", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 4);关闭开始菜单上的气球提示
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "StartButtonBalloonTip", "REG_DWORD", "2")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 5);减少开机滚动条时间
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "VideoInitTime", "REG_DWORD", "5557")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "AppLaunchMaxNumPages", "REG_DWORD", "4000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "AppLaunchMaxNumSections", "REG_DWORD", "170")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "AppLaunchTimerPeriod", "REG_BINARY", "806967ffffffffff")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "BootMaxNumPages", "REG_DWORD", "128000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "BootMaxNumSections", "REG_DWORD", "4080")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "BootTimerPeriod", "REG_BINARY", "00f2d8f8ffffffff")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "MaxNumActiveTraces", "REG_DWORD", "8")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "MaxNumSavedTraces", "REG_DWORD", "8")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "RootDirPath", "REG_SZ", "Prefetch")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "HostingAppList", "REG_SZ", "DLLHOST.EXE,MMC.EXE,RUNDLL32.EXE")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "EnablePrefetcher_BAK", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 6);减少开机滚动条滚动次数
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "EnablePrefetcher", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 7);加快关机速度
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control", "WaitToKillServiceTimeout", "REG_DWORD", "1000")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 8);加快窗口显示速度
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics", "MinAnimate", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 9);加快开机速度副值
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control", "WaitToKillServiceTimeout", "REG_DWORD", "1000")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 10);加快菜单显示速度
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "MenuShowDelay", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 11);加快局域网访问速度
If $aItem = 1 Then
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{2227A280-3AEA-1069-A2DE-08002B30309D}")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 12);加快程序的运行速度
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem", "NtfsDisable8dot3NameCreation", "REG_DWORD", "0")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem", "Win31FileSystem", "REG_DWORD", "0")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem", "Win95TruncatedExtensions", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem", "NtfsAllowExtendedCharacterIn8dot3Name", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem", "ConfigFileAllocSize", "REG_DWORD", "500")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 13);加快预读能力改善开机速度
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "EnablePrefetcher", "REG_DWORD", "4")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 14);自动关闭停止响应的程序
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "HungAppTimeout", "REG_DWORD", "200")
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "AutoEndTasks", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 15);运行CMD时不自动加载Conime
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Console", "LoadConIme", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 16);启动预读和程序预读减少启动时间
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters", "EnablePrefetcher", "REG_DWORD", "3")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 17);不显示共享文档和用户文档
If $aItem = 1 Then
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 18);去掉快捷方式箭头及快捷方式到
If $aItem = 1 Then
RegDelete("HKEY_CLASSES_ROOT\lnkfile", "IsShortcut")
RegDelete("HKEY_CLASSES_ROOT\Piffile", "IsShortcut")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 19);去掉图标快捷方式的字样
If $aItem = 1 Then
RegWrite("HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer", "Link", "REG_BINARY", "00000000")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 20);取消快捷方式的箭头
If $aItem = 1 Then
RegDelete("HKEY_CLASSES_ROOT\lnkfile", "IsShortcut")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 21);去掉开始菜单中Windows Update
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoCommonGroups", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 22);去掉Windows XP的自动更新功能
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "REG_DWORD", "145")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoLowDiskSpaceChecks", "REG_DWORD", "1")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoCommonGroups", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 23);去掉右键新建菜单中的公文包
If $aItem = 1 Then
RegDelete("HKEY_CLASSES_ROOT\.bfc\ShellNew")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 24);去掉右键新建菜单中的BMP
If $aItem = 1 Then
RegDelete("HKEY_CLASSES_ROOT\.bmp\ShellNew")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 25)
If $aItem = 1 Then
RegDelete("HKEY_CLASSES_ROOT\.rtf\ShellNew")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 26)
If $aItem = 1 Then
RegDelete("HKEY_CLASSES_ROOT\.doc\ShellNew")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 27)
If $aItem = 1 Then
RegDelete("HKEY_CLASSES_ROOT\.wav\ShellNew")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 28)
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoSMMyDocs", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 29)
If $aItem = 1 Then
RegWrite("HKEY_USERS\.DEFAULT\Control Panel\Desktop", "FontSmoothing", "REG_SZ", "2")
RegWrite("HKEY_USERS\.DEFAULT\Control Panel\Desktop", "FontSmoothingType", "REG_DWORD", "2")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 30)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore", "DisableSR", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 31)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer", "AlwaysUnloadDLL", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 32)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "SendAlert", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 33)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "CrashDumpEnabled", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 34)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "AutoReboot", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "CrashDumpEnabled", "REG_DWORD", "3")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "DumpFile", "REG_EXPAND_SZ", "%SystemRoot%\MEMORY.DMP")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "LogEvent", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "MinidumpDir", "REG_EXPAND_SZ", "%SystemRoot%\Minidump")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "Overwrite", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "SendAlert", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 35)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa", "restrictanonymous", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 36)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "SFCDisable", "REG_DWORD", "-99")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 37)
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History", "DaysToKeep", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 38)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "LogEvent", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 39)
If $aItem = 1 Then
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{e84fda7c-1d6a-45f6-b725-cb260c236066}\shellex\MayChangeDefaultMenu")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 40)
If $aItem = 1 Then
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 41)
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NORECENTDOCSHISTORY", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 42)
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz", "NoRun", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 43)
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Tour", "RunCount", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 44);禁止用户密码的自动完成功能
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USERSoftwarePoliciesMicrosoftInternet ExplorerControl Panel", "FormSuggestPasswords", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 45);支持137G以上的硬盘
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\atapi\Parameters", "EnableBigLba", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 46);EXE关联文件修复
If $aItem = 1 Then
RegWrite('HKEY_CLASSES_ROOT\exefile\shell\open\command', '', 'REG_SZ', '"%1" %*')
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 47);关闭系统默认共享
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters", "AutoShareServer", "REG_DWORD", "0")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters", "AutoSharewks", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 48);恢复磁盘扫描
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager", "BootExecute", "REG_MULTI_SZ", "autocheck autochk /k:C /k:D /k:E /k:F *")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager", "AutoChkTimeOut", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 49);彻底关闭磁盘扫描
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager", "BootExecute", "REG_MULTI_SZ", "")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager", "AutoChkTimeOut", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 50);开启CPU(512k)二级缓存
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "DisablePagingExecutive", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "SecondLevelDataCache", "REG_DWORD", "200")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 51);开启CPU(1024k)二级缓存
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "DisablePagingExecutive", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "SecondLevelDataCache", "REG_DWORD", "400")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 52);右键加入用记事本打开
If $aItem = 1 Then
RegWrite("HKEY_CLASSES_ROOT\*\shell\用记事本打开\command", "", "REG_SZ", "notepad %1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 53);在右键添加复制到和移动到选项
If $aItem = 1 Then
RegWrite("HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To", "", "REG_SZ", "{7BA4C740-9E81-11CF-99D3-00AA004AE837}")
RegWrite("HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To", "", "REG_SZ", "{C2FBB631-2971-11D1-A18c-00C04FD75D13}")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 54);提升性能去除平滑滚动视觉效果
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "Smoothscroll", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 55);修复AMD处理器的AGP内存分页问题
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "LargePageMinimum", "REG_DWORD", "-1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 56);限制IPC$缺省共享
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa", "restrictanonymous", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 57);禁止使用Windows快捷键
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoWinKeys", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 58);禁用移动磁盘自动运行
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "REG_DWORD", "145")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 59);禁用错误报告,但在发生严重错误时通知我
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}", "SortOrderIndex", "REG_DWORD", "54")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 60);禁用错误报告,但在发生严重错误时通知我、不选勾
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting", "DoReport", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 61);从资源管理器中删除安全选项卡
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoSecurityTab", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 62);关闭分组相似任务栏按钮
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarGlomming", "REG_DWORD", "0")
RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarGlomming", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 63);关闭磁盘空间不足的警告
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "REG_DWORD", "145")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoLowDiskSpaceChecks", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 64);打开磁盘空间不足的警告
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoLowDiskSpaceChecks", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 65);设置CD-ROM的缓存区
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem\CDFS", "CacheSize", "REG_DWORD", "2476")
RegWrite("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem\CDFS", "Prefetch", "REG_DWORD", "1792")
RegWrite("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem\CDFS", "PrefetchTail", "REG_DWORD", "128")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 66);防DDos注册表
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "EnableICMPRedirect", "REG_DWORD", "0")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "KeepAliveTime", "REG_DWORD", "600000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "SynAttackProtect", "REG_DWORD", "2")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxHalfOpen", "REG_DWORD", "500")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxHalfOpenRetried", "REG_DWORD", "400")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxConnectResponseRetransmissions", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpMaxDataRetransmissions", "REG_DWORD", "3")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TCPMaxPortsExhausted", "REG_DWORD", "5")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "DisableIPSourceRouting", "REG_DWORD", "2")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpTimedWaitDelay", "REG_DWORD", "30")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpNumConnections", "REG_DWORD", "20000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters", "BacklogIncrement", "REG_DWORD", "5")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters", "MaxConnBackLog", "REG_DWORD", "2000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters", "EnableDynamicBacklog", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters", "MinimumDynamicBacklog", "REG_DWORD", "20")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters", "MaximumDynamicBacklog", "REG_DWORD", "30000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters", "DynamicBacklogGrowthDelta", "REG_DWORD", "10")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 67);威金注册表(免疫)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\0Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\1Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\2Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\3Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\4Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\5Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\6Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\7Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\8Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\9Sy.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\exerouter.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\EXP10RER.com", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\finders.com", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\finders.com", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\kill.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Logo1_.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\pp2006setup.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sms*.**e", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sms*.**e", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sxs.exe", "Debugger", "REG_SZ", "sxs.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sws.dll", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sws.dll", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\go.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ok.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\logo_1.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\logo_!.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\tool2005.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\tool2006.exe", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\tool*.**e", "Debugger", "REG_SZ", "logo1_.exe")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\1.com", "Debugger", "REG_SZ", "logo1_.exe")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 68);让IE6可以9线程下载
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "MaxConnectionsPer1_0Server", "REG_DWORD", "9")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "MaxConnectionsPerServer", "REG_DWORD", "9")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 69);消除任务栏SATA硬盘图标
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\nvatabus", "DisableRemovable", "REG_DWORD", "1")
RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\nvata", "DisableRemovable", "REG_DWORD", Hex(1))
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 70);解除IE无法查看源文件
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions", "NoViewSource", "REG_DWORD", "0")
RegWrite("HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Restrictions", "NoViewSource", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 71);从资源管理器彻底隐藏文件
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL", "RegPath", "REG_SZ", "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL", "CheckedValue", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 72);屏蔽资源管理器中的文件菜单
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoFileMenu", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 73);屏蔽任务栏中的右键菜单
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoTrayContextMenu", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 74);不显示上次用户登录的用户名
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Winlogon", "dontdisplaylastusername", "REG_SZ", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 75);显示上次用户登录的用户名
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Winlogon", "dontdisplaylastusername", "REG_SZ", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 76);屏蔽最大化/化关闭上的提示信息
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Control Panel\desktop", "MinMaxclose", "REG_DWORD", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 77);屏蔽按Ctrl+Alt+Del中的注销命令
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoLogoff", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 78);屏蔽资源管理器中的搜索菜单
If $aItem = 1 Then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoShellSearchButton", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 79);删除IE分级审查密码
If $aItem = 1 Then
RegDelete("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Ratings")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 80);开启硬件优化
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Vxd\BIOS", "CPUPriority", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Vxd\BIOS", "PCIConcur", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Vxd\BIOS", "FastDRAM", "REG_DWORD", "1")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Vxd\BIOS", "AGPConcur", "REG_DWORD", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 81);取消系统自动登陆
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "AutoAdminLogon", "REG_SZ", "0")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 82);设置系统自动登陆
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "AutoAdminLogon", "REG_SZ", "1")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 83);千兆网卡优化注册表
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters", "DefaultSendWindow", "REG_DWORD", "256960")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "TcpWindowSize", "REG_DWORD", "256960")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "Tcp1323Opts", "REG_DWORD", "3")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "ForwardBufferMemory", "REG_DWORD", "80000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters", "NumForwardPackets", "REG_DWORD", "60000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters", "TcpWindowSize", "REG_DWORD", "256960")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters", "Tcp1323Opts", "REG_DWORD", "3")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters", "ForwardBufferMemory", "REG_DWORD", "80000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters", "NumForwardPackets", "REG_DWORD", "60000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Tcpip\Parameters", "TcpWindowSize", "REG_DWORD", "256960")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Tcpip\Parameters", "Tcp1323Opts", "REG_DWORD", "3")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Tcpip\Parameters", "ForwardBufferMemory", "REG_DWORD", "80000")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Tcpip\Parameters", "NumForwardPackets", "REG_DWORD", "60000")
EndIf
$aItem = _GUICtrlListView_GetItemChecked($tab5list1, 84)
If $aItem = 1 Then
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl", "LogEvent", "REG_DWORD", "0")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows", "NoPopupsOnBoot", "REG_DWORD", "0")
EndIf
MsgBox(0, "提示", "注册表优化完成!")
_tab5buttonview3()
_tab4checkbutton3()
EndFunc ;==>_tab5buttonview1
;==================================================注册表checkd
Func _tab5buttonview2()
Local $i
For $i = 0 To 45
If _GUICtrlListView_GetItemChecked($tab5list1, $i) Then
_GUICtrlListView_SetItemChecked($tab5list1, $i, False)
Else
_GUICtrlListView_SetItemChecked($tab5list1, $i, True) ;;; -1 和本行可用于全选
EndIf
Next
EndFunc ;==>_tab5buttonview2
Func _tab5buttonview3()
Local $i
For $i = 0 To _GUICtrlListView_GetItemCount($tab5list1)
If _GUICtrlListView_GetItemChecked($tab5list1, $i) Then
_GUICtrlListView_SetItemChecked($tab5list1, $i, False)
; _GUICtrlListView_SetItemChecked($tab5list1, $i, True) ;;; -1 和本行可用于全选
EndIf
Next
;==>_tab5buttonview3
EndFunc ;==>_tab5buttonview3
|