求助P版,lsasecur.au3和LocalSecurityAuthority.au3有冲突!
#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
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])
NextD:\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版 给看看呀。 P版 没来吗?顶呀。。 有些是有冲突,把那些常量注释一下看看,如果运行没什么问题,那就行了,遇到过两次了。。。呵呵。。。 回复 3# kinghu318
嗯 我继续测试。主要P大侠的东东太深奥了。看不懂。搞起来挺头大~~ 暂时注 了。。现在还没发现有什么其他问题。。
页:
[1]