IAccessEntry Property: AccessType

Property Name
AccessType

Property Type
Byte

Description
Gets or sets the type of current ACE. The property can have one of the following values:

Value

ACE Type

ACCESS_ALLOWED_ACE_TYPE = 0

Access-allowed (defined by the ACCESS_ALLOWED_ACE structure)

ACCESS_DENIED_ACE_TYPE = 0x01

Access-denied (defined by the ACCESS_DENIED_ACE structure)

SYSTEM_AUDIT_ACE_TYPE = 0x02

System-audit (defined by the SYSTEM_AUDIT_ACE structure)

Remarks
Both 0x00 and 0x01 are for ACEs belonging to a security ACL, that is, a DACL. 0x02 is for an ACE belonging to an audit ACL, that is, a SACL.

Example 

Dim ObjSec As IObjectSecurity
Dim ACE As IAccessEntry
Dim ACL As IAccessList
Set ObjSec = CreateObject("DirectScript.ObjectSecurity")
ObjSec.AttachFile "FileName"
Set ACL = ObjSec.GetAccessList
For Each ACE In ACL
Debug.Print ACE.AccessType
Next

 

See Also