PyACL.AddAuditAccessObjectAce

AddAuditAccessObjectAce(dwAceRevision, AceFlags, dwAccessMask, ObjectTypeGuid, InheritedObjectTypeGuid, sid, bAuditSuccess, bAuditFailure)

Adds an audit ACE for an object type identified by GUID

Parameters

dwAceRevision : int

Revision of ACL: Must be at least ACL_REVISION_DS

AceFlags : int

Combination of FAILED_ACCESS_ACE_FLAG,SUCCESSFUL_ACCESS_ACE_FLAG,CONTAINER_INHERIT_ACE,INHERIT_ONLY_ACE,INHERITED_ACE,NO_PROPAGATE_INHERIT_ACE and OBJECT_INHERIT_ACE

dwAccessMask : int

Bitmask of access types to be audited

ObjectTypeGuid : PyIID

GUID of object type or property set to which ace applies, can be None

InheritedObjectTypeGuid : PyIID

GUID of object type or property that will inherit ACE, can be None

sid : PySID

SID for whom system audit messages will be generated

bAuditSuccess : int

Set to 1 if access success should be audited, else 0

bAuditFailure : int

Set to 1 if access failure should be audited, else 0