找回密码
 加入
搜索
查看: 3554|回复: 4

[AU3基础] 求助P版,lsasecur.au3和LocalSecurityAuthority.au3有冲突!

[复制链接]
发表于 2011-4-26 17:41:29 | 显示全部楼层 |阅读模式
#include <lsasecur.au3>
#include <LocalSecurityAuthority.au3>
Local $sRegKey, $aSecur, $pDacl, $aPermission
$sRegKey = "Machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects"
$aSecur = _SeGetNamedSecurityInfo($sRegKey, $SE_REGISTRY_KEY, $SE_INFO_DACL)
If @error Then
        MsgBox(48, "Error", _SeFormatMsg($sRegKey))
        Exit
EndIf
$pDacl = $aSecur[6]
If Not _SeIsValidAcl($pDacl) Then
        MsgBox(48, "Error", _SeFormatMsg($sRegKey))
        Exit
        EndIf
$aPermission = _SeEnumEntriesFromAcl($pDacl)
For $i= 1 to UBound($aPermission) -1
MsgBox(0,0,$aPermission[$i][0])
Next
D:\autoit3\Include\LocalSecurityAuthority.au3(113,41) : ERROR: $SE_UNKNOWN_OBJECT_TYPE previously declared as a 'Const'
Global Const $SE_UNKNOWN_OBJECT_TYPE = 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(114,33) : ERROR: $SE_FILE_OBJECT previously declared as a 'Const'
Global Const $SE_FILE_OBJECT = 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(115,29) : ERROR: $SE_SERVICE previously declared as a 'Const'
Global Const $SE_SERVICE = 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(116,29) : ERROR: $SE_PRINTER previously declared as a 'Const'
Global Const $SE_PRINTER = 3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(117,34) : ERROR: $SE_REGISTRY_KEY previously declared as a 'Const'
Global Const $SE_REGISTRY_KEY = 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(118,29) : ERROR: $SE_LMSHARE previously declared as a 'Const'
Global Const $SE_LMSHARE = 5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(119,35) : ERROR: $SE_KERNEL_OBJECT previously declared as a 'Const'
Global Const $SE_KERNEL_OBJECT = 6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(120,35) : ERROR: $SE_WINDOW_OBJECT previously declared as a 'Const'
Global Const $SE_WINDOW_OBJECT = 7
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(121,31) : ERROR: $SE_DS_OBJECT previously declared as a 'Const'
Global Const $SE_DS_OBJECT = 8
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(122,35) : ERROR: $SE_DS_OBJECT_ALL previously declared as a 'Const'
Global Const $SE_DS_OBJECT_ALL = 9
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(123,46) : ERROR: $SE_PROVIDER_DEFINED_OBJECT previously declared as a 'Const'
Global Const $SE_PROVIDER_DEFINED_OBJECT = 10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(124,37) : ERROR: $SE_WMIGUID_OBJECT previously declared as a 'Const'
Global Const $SE_WMIGUID_OBJECT = 11
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\autoit3\Include\LocalSecurityAuthority.au3(125,43) : ERROR: $SE_REGISTRY_WOW64_32KEY previously declared as a 'Const'
Global Const $SE_REGISTRY_WOW64_32KEY = 12
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^


两个 include 放一起就报错了。。。P版 给看看呀。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2011-4-26 20:44:27 | 显示全部楼层
P版 没来吗?顶呀。。
发表于 2011-4-27 08:52:47 | 显示全部楼层
有些是有冲突,把那些常量注释一下看看,如果运行没什么问题,那就行了,遇到过两次了。。。呵呵。。。
 楼主| 发表于 2011-4-27 09:25:32 | 显示全部楼层
回复 3# kinghu318


    嗯 我继续测试。主要P大侠的东东太深奥了。看不懂。搞起来挺头大~~
 楼主| 发表于 2011-5-2 23:54:11 | 显示全部楼层
暂时注 了。。现在还没发现有什么其他问题。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-14 14:45 , Processed in 0.216727 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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