PyACL.GetAce

tuple = GetAce(index)

Gets an Ace from the ACL

Parameters

index : int

Zero-based index of the ACE to retrieve.

Return Value

Conventional ACE's (types ACCESS_ALLOWED_ACE, ACCESS_DENIED_ACE, SYSTEM_AUDIT_ACE) are returned as a tuple of:

Items

[0] (int, int) : aceType, AceFlags

[1] int : Mask

[2] PySID : sid


Object ACE's (types ACCESS_ALLOWED_OBJECT_ACE, ACCESS_DENIED_OBJECT_ACE, SYSTEM_AUDIT_OBJECT_ACE) are returned as a tuple:

[0] (int, int) : aceType, AceFlags

[1] int : mask

[2] PyIID : ObjectType

[3] PyIID : InheritedObjectType

[4] PySID : sid


For details see the API documentation.