コード例 #1
0
 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);
コード例 #2
0
 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);
コード例 #3
0
 private static extern bool SetPrivateObjectSecurity(
   int SecurityInformation,
   IntPtr ModificationDescriptor,
   ref IntPtr ObjectsSecurityDescriptor,
   ref GenericMapping GenericMapping,
   IntPtr Token
 );
コード例 #4
0
 public static extern void MapGenericMask(ref int AccessMask,
                                          [In] Asprosys.Security.AccessControl.GenericMapping mapping);
コード例 #5
0
 private static extern bool CreatePrivateObjectSecurity(
   byte[] ParentDescriptor,
   byte[] CreatorDescriptor,
   out IntPtr NewDescriptor,
   [MarshalAs(UnmanagedType.Bool)] bool IsDirectoryObject,
   IntPtr Token,
   ref GenericMapping GenericMapping
 );