AddAccessAllowedAce (advapi32)
Last changed: -

The AddAccessAllowedAce function adds an access-allowed access control entry (ACE) to an access control list (ACL). The access is granted to a specified security identifier (SID).

C# Signature:

[DllImport("advapi32.dll", SetLastError = true)]
static extern bool AddAccessAllowedAce(IntPtr pAcl, uint dwAceRevision, ACCESS_MASK AccessMask, IntPtr pSid);

VB.NET Signature:

<DllImport("advapi32.dll", SetLastError:=true)> _
Public Function AddAccessAllowedAce(pAcl As IntPtr, _
                     dwAceRevision As UInteger, _
                     AccessMask As ACCESS_MASK, _
                     pSid As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean
End Function

VB Signature:

Public Declare Function AddAccessAllowedAce Lib "advapi32.dll" _
   (pAcl As Long, _
    dwAceRevision As Long, _
    AccessMask As ACCESS_MASK, _
    pSid As Long) As Boolean

User-Defined Types:


Alternative Managed API:

Do you know one? Please contribute it!



Tips & Tricks:

Please add some!

Sample Code:

Please add some!