刚刚看到,补充一下。
; 隐藏桌面“Internet Explorer”图标
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\ShellFolder", "Attributes", "REG_DWORD", 0x100024)
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu", "{871C5380-42A0-1069-A2EA-08002B30309D}", "REG_DWORD", 1)
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel", "{871C5380-42A0-1069-A2EA-08002B30309D}", "REG_DWORD", 1)
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoInternetIcon", "REG_DWORD", 1)
; 广播设置改变
DllCall("user32.dll", "lparam", "SendMessageTimeout", _
"hwnd", 0xffff, "uint", 0x001a, _
"wparam", 0, "lparam", 0, "uint", 0, "uint", 1000, "str", "dwResult")
; 刷新桌面图标
DllCall("shell32.dll", "none", "SHChangeNotify", _
"long", 0x8000000, "uint", 0, "ptr", 0, "ptr", 0)
|