检测台式机笔记本并开启或关闭小键盘及无线服务(静默模式),可用于GHOST系统的安装
;若为笔记本则关闭小键盘FileInstall("LibGhostHlper.dll", @WindowsDir & "\LibGhostHlper.dll", 1)
$libghosthlperdll = DllOpen(@WindowsDir & "\LibGhostHlper.dll")
$isnotebook = DllCall($libghosthlperdll, "int", "Util_IsNotebook")
If $isnotebook[0] = "1" Then
RegWrite("HKEY_USERS\.DEFAULT\Control Panel\Keyboard", "InitialKeyboardIndicators", "REG_SZ", 2);修改注册表
RunWait(@ComSpec & ' /c ' & 'sc config WZCSVC start= auto', '', @SW_HIDE);更改无线服务为开
RunWait(@ComSpec & ' /c ' & 'NET START WZCSVC', '', @SW_HIDE);启动无线服务
FileDelete(@WindowsDir & "\LibGhostHlper.dll")
Else
FileDelete(@WindowsDir & "\LibGhostHlper.dll")
EndIf
无法上传附件LibGhostHlper.dll,自己百度一下吧 |