AccessCheck (advapi32)
Last changed: -91.119.3.204

.
Summary
The AccessCheck function determines whether a security descriptor grants a specified set of access rights to the client identified by an access token. Typically, server applications use this function to check access to a private object.

C# Signature:

  [DllImport("advapi32", SetLastError=true)]
  static extern bool AccessCheck(
    [MarshalAs(UnmanagedType.LPArray)]
    byte [] pSecurityDescriptor,
    IntPtr ClientToken,
    uint DesiredAccess,
    [In] ref GENERIC_MAPPING GenericMapping,
    IntPtr PrivilegeSet,
    ref uint PrivilegeSetLength,
    out uint GrantedAccess,
    out bool AccessStatus);

VB Signature:

Declare Function AccessCheck Lib "advapi32.dll" (TODO) As TODO

User-Defined Types:

GENERIC_MAPPING

PRIVILEGE_SET

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
AccessCheck on MSDN