public static extern bool AccessCheckAndAuditAlarm(string subsystemName, IntPtr handleId, string objectTypeName, string objectName, byte[] securityDescriptor, int desiredAccess, Asprosys.Security.AccessControl.GenericMapping mapping, [MarshalAs(UnmanagedType.Bool)] bool objectCreation, out int grantedAccess, [MarshalAs(UnmanagedType.Bool)] out bool accessStatus, [MarshalAs(UnmanagedType.Bool)] out bool pfGenerateOnClose);
public static extern bool AccessCheck(byte[] pSecurityDescriptor, SafeHandle clientToken, int desiredAccess, [In] Asprosys.Security.AccessControl.GenericMapping mapping, byte[] privilegeSet, out int privilegeSetLength, out int grantedAccess, [MarshalAs(UnmanagedType.Bool)] out bool accessStatus);
private static extern bool SetPrivateObjectSecurity( int SecurityInformation, IntPtr ModificationDescriptor, ref IntPtr ObjectsSecurityDescriptor, ref GenericMapping GenericMapping, IntPtr Token );
public static extern void MapGenericMask(ref int AccessMask, [In] Asprosys.Security.AccessControl.GenericMapping mapping);
private static extern bool CreatePrivateObjectSecurity( byte[] ParentDescriptor, byte[] CreatorDescriptor, out IntPtr NewDescriptor, [MarshalAs(UnmanagedType.Bool)] bool IsDirectoryObject, IntPtr Token, ref GenericMapping GenericMapping );