GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Two — Language Overview (continued)
Overview
The ScriptGetPermissions function returns the current security state for various items.
Syntax/Parameters
Syntax
qword = ScriptGetPermissions ( int item );
Parameters
item
An int specifying one of the following items to retrieve:
0 SP_SECURITY_MODE — Retrieve Current Mode
1 SP_SECURITY_TRUSTED — Retrieve Trusted Bits
2 SP_SECURITY_NO_QUERY — Retrieve No Query Bits
3 SP_SECURITY_UNTRUSTED — Retrieve Untrusted Bits
Return Value
Returns a qword as ERROR_NONE or zero on failure. Use the GetLastError function to retrieve a formatted error code.
Remarks
The following bits are defined:
Definition | Bitwise | Description | ||||
General | ||||||
SP_RIGHTS_ALL | 0xFFFFFFFFFFFFFFFF | All Access | ||||
System | ||||||
SP_RIGHTS_CAN_SHELL_EXECUTE | 0x0000000000000010 | Execute Programs | ||||
SP_RIGHTS_CAN_SHELL_COMMANDS | 0x0000000000000020 | Run Shell Commands | ||||
SP_RIGHTS_CAN_RUN_DLL | 0x0000000000000040 | Execute DLL Extensions | ||||
SP_RIGHTS_CAN_RUN_SCRIPTS | 0x0000000000000080 | Execute Other Scripts | ||||
Internet | ||||||
SP_RIGHTS_CAN_ACCESS_INTERNET | 0x0000000000000100 | Internet Access | ||||
SP_RIGHTS_CAN_ACCESS_EMAIL | 0x0000000000000200 | Email Access | ||||
File | ||||||
SP_RIGHTS_CAN_READ_USER_FILES | 0x0000000010000000 | Read User Access | ||||
SP_RIGHTS_CAN_WRITE_USER_FILES | 0x0000000020000000 | Write User Access | ||||
SP_RIGHTS_CAN_DELETE_USER_FILES | 0x0000000040000000 | Delete User Access | ||||
SP_RIGHTS_CAN_ENUMERATE_USER_FILES | 0x0000000080000000 | Enumerate User Access | ||||
SP_RIGHTS_CAN_READ_ALL_FILES | 0x0000000100000000 | Read All Access | ||||
SP_RIGHTS_CAN_WRITE_ALL_FILES | 0x0000000200000000 | Write All Access | ||||
SP_RIGHTS_CAN_DELETE_ALL_FILES | 0x0000000400000000 | Delete All Access | ||||
SP_RIGHTS_CAN_ENUMERATE_ALL_FILES | 0x0000000800000000 | Enumerate All Access | ||||
Settings/Registry | ||||||
SP_RIGHTS_CAN_READ_REGISTRY | 0x0000010000000000 | Read Registry | ||||
SP_RIGHTS_CAN_WRITE_REGISTRY | 0x0000020000000000 | Write Registry | ||||
SP_RIGHTS_CAN_READ_INI_FILES | 0x0000040000000000 | Read INI Files | ||||
SP_RIGHTS_CAN_WRITE_INI_FILES | 0x0000080000000000 | Write INI Files | ||||
Data | ||||||
SP_RIGHTS_CAN_ACCESS_ODBC | 0x0000100000000000 | Data Base Access | ||||
EDGAR | ||||||
SP_RIGHTS_CAN_ACCESS_LIBRARIES | 0x0001000000000000 | Access EDGAR Libraries | ||||
SP_RIGHTS_CAN_ACCESS_EDGAR_SYSTEM | 0x0002000000000000 | Access EDGAR System |
Related Functions
Platform Support
Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL
Legato IDE, Legato Basic
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.