找回密码
 加入
搜索
查看: 1535|回复: 0

[系统综合] 请求P版更新一下纯AU3创建服务的例子!

[复制链接]
发表于 2011-5-2 08:05:02 | 显示全部楼层 |阅读模式
P版,你停止更新<LocalSecurityAuthority.au3>,现在启用了新的<lsasecur.au3>.

以前纯AU3创建服务如果用LSASECUR会提示N多错误,麻烦帮忙修正

E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(78,77) : WARNING: $SE_DEBUG_NAME: 使用前并未进行声明.
        Local $aProcess, $hProcess, $hToken, $aPriv[1][2] = [[$SE_DEBUG_NAME,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(192,88) : 错误: 表达式错误
                        $sBuffer &= "wchar[" & StringLen($aDependencies[$i]) + 1 & "];")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(78,77) : ERROR: $SE_DEBUG_NAME: 未声明的全局变量.
        Local $aProcess, $hProcess, $hToken, $aPriv[1][2] = [[$SE_DEBUG_NAME,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(37,59) : ERROR: _LsaOpenService(): undefined function.
        $hService = _LsaOpenService($sServiceName, 0xF01FF)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(42,41) : ERROR: _LsaCloseServiceHandle(): undefined function.
        _LsaCloseServiceHandle($hService)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(89,39) : ERROR: _OpenProcessToken(): undefined function.
        $hToken = _OpenProcessToken(-1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(90,59) : ERROR: _IsPrivilegeEnabled(): undefined function.
        If Not _IsPrivilegeEnabled($hToken, $SE_DEBUG_NAME)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(91,55) : ERROR: _AdjustTokenPrivileges(): undefined function.
                _AdjustTokenPrivileges($hToken, $aPriv)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(93,32) : ERROR: _LsaCloseHandle(): undefined function.
        _LsaCloseHandle($hToken)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(99,66) : ERROR: _OpenProcess(): undefined function.
                        $hProcess = _OpenProcess($aProcess[$i][1])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(135,39) : ERROR: _GetLastError(): undefined function.
        Return SetError(_GetLastError()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3(199,39) : ERROR: _LsaOpenSCManager(): undefined function.
        $hSC = _LsaOpenSCManager("", 2)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\编程\B.编程工具\58FLY-SAFE\58FLY-SAFE.au3 - 11 error(s), 1 warning(s)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-14 14:33 , Processed in 0.185409 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表