SetACL - Functions

Author Johnny Josefsson on February 19, 2010 | Print | Bookmark
Function AddACE(sTrustee As String, fTrusteeIsSID As Boolean, sPermission As String,
                nInheritance As Long, fInhSpecified As Boolean, nAccessMode As Long,
                nACLType As Long) As Long
    Member of SETACLLib.SetACL
    Add an ACE to a DACL or SACL


Function AddAction(nAction As Long) As Long
    Member of SETACLLib.SetACL
    Add an action to be performed


Function AddDomain(sDomain As String, sNewDomain As String, nAction As Long,
                   fDACL As Boolean, fSACL As Boolean) As Long
    Member of SETACLLib.SetACL
    Add a domain: used by the functions to remove/replace (a) specified domain(s) 
                  from the ACL


Sub AddObjectFilter(sKeyword As String)
    Member of SETACLLib.SetACL
    Add a keyword to be filtered out - objects containing this keyword are not
    processed


Function AddTrustee(sTrustee As String, sNewTrustee As String, fTrusteeIsSID As Boolean,
                    fNewTrusteeIsSID As Boolean, nAction As Long, fDACL As Boolean,
                    fSACL As Boolean) As Long
    Member of SETACLLib.SetACL
    Add a trustee: used by the functions to remove/replace (a) specified trustee(s)
                   from the ACL


Function GetLastAPIError() As Long
    Member of SETACLLib.SetACL
    Retrieve the last API error as an error number


Function GetLastAPIErrorMessage() As String
    Member of SETACLLib.SetACL
    Retrieve the last API error as a localized string


Function GetResourceString(nID As Long) As String
    Member of SETACLLib.SetACL
    Retrieve a resource string (used for error messages) identified by ID


Function Run() As Long
    Member of SETACLLib.SetACL
    Do it: apply all settings.


Function SetAction(nAction As Long) As Long
    Member of SETACLLib.SetACL
    Set the action to be performed


Function SetBackupRestoreFile(sBackupRestoreFile As String) As Long
    Member of SETACLLib.SetACL
    Specify a (unicode) file to be used for backup/restore operations


Function SetIgnoreErrors(fIgnoreErrors As Boolean) As Boolean
    Member of SETACLLib.SetACL
    Ignore errors, do NOT stop execution (unknown consequences!)


Function SetListOptions(nListFormat As Long, nListWhat As Long, fListInherited As Boolean,
                        nListNameSID As Long)
    Member of SETACLLib.SetACL
    Set the options for ACL listing


Function SetLogFile(sLogFile As String)
    Member of SETACLLib.SetACL
    Specify a (unicode) file to be used for logging


Function SetObject(sObjectPath As String, nObjectType As Long)
    Member of SETACLLib.SetACL
    Set the object on which all actions are to be performed


Function SetObjectFlags(nDACLProtected As Long, nSACLProtected As Long,
                        fDACLResetChildObjects As Boolean, fSACLResetChildObjects As Boolean)
    Member of SETACLLib.SetACL
    Set flags specific to the object


Function SetOwner(sTrustee As String, fTrusteeIsSID As Boolean) As Long
    Member of SETACLLib.SetACL
    Set the owner


Function SetPrimaryGroup(sTrustee As String, fTrusteeIsSID As Boolean) As Long
    Member of SETACLLib.SetACL
    Set the primary group


Function SetRecursion(nRecursionType As Long) As Long
    Member of SETACLLib.SetACL
    Should we recurse?

Was this article helpful?

Yes No

Category: Scripting, VBScript, SetACL

Last updated on August 1, 2010 with 2453 views