#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版 给看看呀。 |