@@ -38,8 +38,8 @@ Global $sRet, $aRet, $newItem, $oldItem, $isFolder, $aUniques, $TV_Icons
3838#AutoIt3Wrapper_UseX64= y
3939#AutoIt3Wrapper_Res_Description= ACL Viewer
4040#AutoIt3Wrapper_res_requestedExecutionLevel= requireAdministrator
41- #AutoIt3Wrapper_Res_Fileversion= 1.1 .0
42- #AutoIt3Wrapper_Res_ProductVersion= 1.1 .0
41+ #AutoIt3Wrapper_Res_Fileversion= 1.2 .0
42+ #AutoIt3Wrapper_Res_ProductVersion= 1.2 .0
4343#AutoIt3Wrapper_Res_ProductName= ACLViewer
4444#AutoIt3Wrapper_Outfile_x64= ACLViewer.exe
4545#AutoIt3Wrapper_OutFile_x86= ACLViewer.exe
@@ -748,6 +748,7 @@ Func GetPermissions()
748748 ; parse access type
749749 $aOldArray [$i ][1 ] = StringReplace ($aOldArray [$i ][1 ], ' 0' , ' Allow ' , 0 )
750750 $aOldArray [$i ][1 ] = StringReplace ($aOldArray [$i ][1 ], ' 1' , ' Deny ' , 0 )
751+ $aOldArray [$i ][1 ] = StringReplace ($aOldArray [$i ][1 ], ' 9' , ' Allow ' , 0 )
751752
752753 ; Parse SIDs
753754 $aOldArray [$i ][0 ] = StringReplace ($aOldArray [$i ][0 ], ' APPLICATION PACKAGE AUTHORITY\' , ' ' )
@@ -767,13 +768,22 @@ Func GetPermissions()
767768 ; get basic permission from access mask
768769 If $aOldArray [$i ][5 ] = ' 00000000000111110000000111111111' Then $aOldArray [$i ][2 ] = ' Full Control'
769770 If $aOldArray [$i ][5 ] = ' 00010000000000000000000000000000' Then $aOldArray [$i ][2 ] = ' Full Control'
771+ If $aOldArray [$i ][5 ] = ' 00010000000111110000000111111111' Then $aOldArray [$i ][2 ] = ' Full Control'
772+ If $aOldArray [$i ][5 ] = ' 11110000000000000000000000000000' Then $aOldArray [$i ][2 ] = ' Full Control'
770773 If $aOldArray [$i ][5 ] = ' 10100000000000000000000000000000' Then $aOldArray [$i ][2 ] = ' Read & Execute'
771774 If $aOldArray [$i ][5 ] = ' 00000000000100100000000010101001' Then $aOldArray [$i ][2 ] = ' Read & Execute'
772775 If $aOldArray [$i ][5 ] = ' 00000000000100110000000110111111' Then $aOldArray [$i ][2 ] = ' Modify'
773776 If $aOldArray [$i ][5 ] = ' 11100000000000010000000000000000' Then $aOldArray [$i ][2 ] = ' Modify'
774777 If $aOldArray [$i ][5 ] = ' 00000000000000000000000100010110' Then $aOldArray [$i ][2 ] = ' Write'
775778 If $aOldArray [$i ][5 ] = ' 00000000000100100000000010001001' Then $aOldArray [$i ][2 ] = ' Read'
779+ If $aOldArray [$i ][5 ] = ' 10000000000000000000000000000000' Then $aOldArray [$i ][2 ] = ' Read'
780+ If $aOldArray [$i ][5 ] = ' 10000000000100100000000010001001' Then $aOldArray [$i ][2 ] = ' Read'
781+ If $aOldArray [$i ][5 ] = ' 00000000000000010000000000000000' Then $aOldArray [$i ][2 ] = ' Delete'
776782 If $aOldArray [$i ][5 ] = ' 00000000000000000000000000000001' Then $aOldArray [$i ][2 ] = ' List folder contents'
783+ If $aOldArray [$i ][5 ] = ' 00000000000100100000000110111111' Then $aOldArray [$i ][2 ] = ' Read, write & execute'
784+ If $aOldArray [$i ][5 ] = ' 11100000000000000000000000000000' Then $aOldArray [$i ][2 ] = ' Read, write & execute'
785+ If $aOldArray [$i ][5 ] = ' 00000000000000000000000000100000' Then $aOldArray [$i ][2 ] = ' Traverse folder / execute file'
786+ If $aOldArray [$i ][5 ] = ' 00000000000100100000000010100000' Then $aOldArray [$i ][2 ] = ' Traverse / execute'
777787
778788 If $aOldArray [$i ][5 ] = ' 00000000000100000000000000100001' Then $aOldArray [$i ][2 ] = ' Special'
779789 If $aOldArray [$i ][5 ] = ' 00000000000100100000000010101111' Then $aOldArray [$i ][2 ] = ' Special'
@@ -782,6 +792,15 @@ Func GetPermissions()
782792 If $aOldArray [$i ][5 ] = ' 00000000000100000000000000100000' Then $aOldArray [$i ][2 ] = ' Special'
783793 If $aOldArray [$i ][5 ] = ' 00000000000100110000000111111111' Then $aOldArray [$i ][2 ] = ' Special'
784794 If $aOldArray [$i ][5 ] = ' 00000000000000010000000001000000' Then $aOldArray [$i ][2 ] = ' Special'
795+ If $aOldArray [$i ][5 ] = ' 00000000000100100000000010101011' Then $aOldArray [$i ][2 ] = ' Special'
796+ If $aOldArray [$i ][5 ] = ' 00000000000100000000000000100110' Then $aOldArray [$i ][2 ] = ' Special'
797+ If $aOldArray [$i ][5 ] = ' 00000000000100100000000110011111' Then $aOldArray [$i ][2 ] = ' Special'
798+ If $aOldArray [$i ][5 ] = ' 11000000000000000000000000000000' Then $aOldArray [$i ][2 ] = ' Special'
799+ If $aOldArray [$i ][5 ] = ' 00000000000100110000000110011111' Then $aOldArray [$i ][2 ] = ' Special'
800+ If $aOldArray [$i ][5 ] = ' 11000000000000010000000000000000' Then $aOldArray [$i ][2 ] = ' Special'
801+ If $aOldArray [$i ][5 ] = ' 00000000000100100000000000100000' Then $aOldArray [$i ][2 ] = ' Special'
802+ If $aOldArray [$i ][5 ] = ' 00000000000100100000000100010110' Then $aOldArray [$i ][2 ] = ' Special'
803+ If $aOldArray [$i ][5 ] = ' 00000000000111110000000110011111' Then $aOldArray [$i ][2 ] = ' Special'
785804; #cs
786805 ; parse inheritance flags
787806 If $aOldArray [$i ][3 ] = ' 10' Then $aOldArray [$i ][6 ] = ' True'
@@ -817,6 +836,10 @@ Func GetPermissions()
817836 $aOldArray [$i ][4 ] = ' True'
818837 $aOldArray [$i ][6 ] = ' True'
819838 EndIf
839+ If $aOldArray [$i ][3 ] = ' 9' Then
840+ $aOldArray [$i ][3 ] = ' Files only'
841+ $aOldArray [$i ][6 ] = ' True'
842+ EndIf
820843 If $aOldArray [$i ][3 ] = ' 0' Then $aOldArray [$i ][3 ] = ' This folder only'
821844 If $aOldArray [$i ][3 ] = ' 4' Then $aOldArray [$i ][6 ] = ' True'
822845 If $aOldArray [$i ][3 ] = ' 4' Then $aOldArray [$i ][3 ] = ' '
@@ -1629,10 +1652,6 @@ Func RefreshTV()
16291652 __TreeListExplorer_AddView($hTLESystemRight, $hTreeViewRight, True, True, "_clickCallback", "_doubleClickCallback", "_loadingCallback", "_selectCallback")
16301653 If @error Then ConsoleWrite("__TreeListExplorer_AddView $hTreeView failed: "&@error&":"&@extended&@crlf)
16311654
1632- ; Restore previous selection
1633- __TreeListExplorer_OpenPath($hTLESystemRight, $restoreSel)
1634- ;__TreeListExplorer_OpenPath($hTLESystemRight, 'C:\Users\tiffanyanddave')
1635- If @error Then ConsoleWrite("__TreeListExplorer_OpenPath failed: "&@error&":"&@extended&@crlf)
16361655 #ce
16371656EndFunc
16381657
0 commit comments