@@ -4,22 +4,22 @@ import {FileAccessMaskCodeType} from '../types/file-access-mask-code.type';
44export const ACCESS_MASK_CODES : FileAccessMaskCodeType [ ] = [
55 {
66 access : 'ReadData (or ListDirectory)' ,
7- hex : parseInt ( AccessMaskEnum . READ_DATA , 16 ) ,
7+ hex : ` ${ AccessMaskEnum . READ_DATA } ` ,
88 description : 'ReadData - For a file object, the right to read ' +
99 'the corresponding file data. For a directory object, the right to read the' +
1010 ' corresponding directory data.\n' +
1111 'ListDirectory - For a directory, the right to list the contents of the directory.'
1212 } ,
1313 {
1414 access : 'WriteData (or AddFile)' ,
15- hex :parseInt ( AccessMaskEnum . WRITE_DATA , 16 ) ,
15+ hex :` ${ AccessMaskEnum . WRITE_DATA } ` ,
1616 description : 'WriteData - For a file object, the right to write data to the file. ' +
1717 'For a directory object, the right to create a file in the directory (FILE_ADD_FILE).\n' +
1818 'AddFile - For a directory, the right to create a file in the directory..'
1919 } ,
2020 {
2121 access : 'AppendData (or AddSubdirectory or CreatePipeInstance)' ,
22- hex :parseInt ( AccessMaskEnum . APPEND_DATA , 16 ) ,
22+ hex :` ${ AccessMaskEnum . APPEND_DATA } ` ,
2323 description : 'AppendData - For a file object, the right to append data to the file.' +
2424 ' (For local files, write operations will not overwrite existing data if this flag ' +
2525 'is specified without FILE_WRITE_DATA.) For a directory object, the right to create a ' +
@@ -29,17 +29,17 @@ export const ACCESS_MASK_CODES: FileAccessMaskCodeType[] = [
2929 } ,
3030 {
3131 access : 'ReadEA(For registry objects, this is Enumerate sub-keys.)' ,
32- hex :parseInt ( AccessMaskEnum . READ_EA , 16 ) ,
32+ hex :` ${ AccessMaskEnum . READ_EA } ` ,
3333 description : 'The right to read extended file attributes.'
3434 } ,
3535 {
3636 access : 'WriteEA' ,
37- hex :parseInt ( AccessMaskEnum . WRITE_EA , 16 ) ,
37+ hex :` ${ AccessMaskEnum . WRITE_EA } ` ,
3838 description : 'The right to write extended file attributes.'
3939 } ,
4040 {
4141 access : 'Execute/Traverse' ,
42- hex :parseInt ( AccessMaskEnum . EXECUTE_TRAVERSE , 16 ) ,
42+ hex :` ${ AccessMaskEnum . EXECUTE_TRAVERSE } ` ,
4343 description : 'Execute - For a native code file, the right to execute' +
4444 ' the file. This access right given to scripts may cause the ' +
4545 'script to be executable, depending on the script interpreter.\n' +
@@ -50,52 +50,52 @@ export const ACCESS_MASK_CODES: FileAccessMaskCodeType[] = [
5050 } ,
5151 {
5252 access : 'Delete child' ,
53- hex :parseInt ( AccessMaskEnum . DELETE_CHILD , 16 ) ,
53+ hex :` ${ AccessMaskEnum . DELETE_CHILD } ` ,
5454 description : 'For a directory, the right to delete a directory and all the ' +
5555 'files it contains, including read-only files.'
5656 } ,
5757 {
5858 access : 'Read attributes' ,
59- hex :parseInt ( AccessMaskEnum . READ_ATTRIBUTES , 16 ) ,
59+ hex :` ${ AccessMaskEnum . READ_ATTRIBUTES } ` ,
6060 description : 'The right to read file attributes.'
6161 } ,
6262 {
6363 access : 'Write attributes' ,
64- hex :parseInt ( AccessMaskEnum . WRITE_ATTRIBUTES , 16 ) ,
64+ hex :` ${ AccessMaskEnum . WRITE_ATTRIBUTES } ` ,
6565 description : 'The right to write file attributes.'
6666 } ,
6767 {
6868 access : 'Delete' ,
69- hex :parseInt ( AccessMaskEnum . DELETE , 16 ) ,
69+ hex :` ${ AccessMaskEnum . DELETE } ` ,
7070 description : 'The right to delete the object.'
7171 } ,
7272 {
7373 access : 'Read control' ,
74- hex :parseInt ( AccessMaskEnum . READ_CONTROL , 16 ) ,
74+ hex :` ${ AccessMaskEnum . READ_CONTROL } ` ,
7575 description : 'The right to read the information in the object\'s security' +
7676 ' descriptor, not including the information' +
7777 ' in the system access control list (SACL).'
7878 } ,
7979 {
8080 access : 'Write DAC' ,
81- hex :parseInt ( AccessMaskEnum . WRITE_AC , 16 ) ,
81+ hex :` ${ AccessMaskEnum . WRITE_AC } ` ,
8282 description : 'The right to modify the discretionary access control list' +
8383 ' (DACL) in the object\'s security descriptor.'
8484 } ,
8585 {
8686 access : 'Write OWNER' ,
87- hex :parseInt ( AccessMaskEnum . WRITE_OWNER , 16 ) ,
87+ hex :` ${ AccessMaskEnum . WRITE_OWNER } ` ,
8888 description : 'The right to change the owner in the object\'s security descriptor'
8989 } ,
9090 {
9191 access : 'Synchronize' ,
92- hex :parseInt ( AccessMaskEnum . SYNCHRONIZE , 16 ) ,
92+ hex :` ${ AccessMaskEnum . SYNCHRONIZE } ` ,
9393 description : 'The right to use the object for synchronization. This enables a thread to ' +
9494 'wait until the object is in the signaled state. Some object type do not support this access right.'
9595 } ,
9696 {
9797 access : 'Access SYS_SEC' ,
98- hex :parseInt ( AccessMaskEnum . ACCESS_SYS_SEC , 16 ) ,
98+ hex :` ${ AccessMaskEnum . ACCESS_SYS_SEC } ` ,
9999 description : 'The ACCESS_SYS_SEC access right controls the ability to get or set the SACL' +
100100 ' in an object\'s security descriptor.'
101101 }
0 commit comments