Esempio n. 1
0
 public DesktopAccessRule(IdentityReference identity, DesktopRights desktopRights, AccessControlType type)
     : base(
         identity,
         DesktopAccessRule.AccessMaskFromRights(desktopRights, type),
         false /* isInherited */,
         InheritanceFlags.None,
         PropagationFlags.None,
         type)
 {
 }
Esempio n. 2
0
 public DesktopAuditRule(IdentityReference identity, DesktopRights desktopRights, AuditFlags flags)
     : base(
         identity,
         DesktopAuditRule.AccessMaskFromRights(desktopRights),
         false /* isInherited */,
         InheritanceFlags.None,
         PropagationFlags.None,
         flags)
 {
 }
Esempio n. 3
0
 internal static int AccessMaskFromRights(DesktopRights desktopRights)
 {
     return((int)desktopRights);
 }
Esempio n. 4
0
 internal static int AccessMaskFromRights(DesktopRights desktopRights, AccessControlType controlType)
 {
     return((int)desktopRights);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DesktopAuditRule"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="desktopRights">The desktop rights.</param>
 /// <param name="type">The type.</param>
 public DesktopAuditRule(string identity, DesktopRights desktopRights, AuditFlags type)
     : this(new NTAccount(identity), desktopRights, type)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DesktopAccessRule"/> class.
 /// </summary>
 /// <param name="identity">The identity of the user to be granted or denied
 /// the associated rights.</param>
 /// <param name="desktopRights">The desktop rights allowed or denied.</param>
 /// <param name="type">The type of access controlled by the rule.</param>
 public DesktopAccessRule(string identity, DesktopRights desktopRights, AccessControlType type)
     : this(new NTAccount(identity), desktopRights, type)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DesktopAuditRule"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="desktopRights">The desktop rights.</param>
 /// <param name="type">The type.</param>
 public DesktopAuditRule(IdentityReference identity, DesktopRights desktopRights, AuditFlags type)
     : base(identity, (int)desktopRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DesktopAccessRule"/> class.
 /// </summary>
 /// <param name="identity">The identity of the user to be granted or denied
 /// the associated rights.</param>
 /// <param name="desktopRights">The desktop rights allowed or denied.</param>
 /// <param name="type">The type of access controlled by the rule.</param>
 public DesktopAccessRule(IdentityReference identity, DesktopRights desktopRights, AccessControlType type)
     : base(identity, (int)desktopRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DesktopAccessRule"/> class.
 /// </summary>
 /// <param name="identity">The identity of the user to be granted or denied 
 /// the associated rights.</param>
 /// <param name="desktopRights">The desktop rights allowed or denied.</param>
 /// <param name="type">The type of access controlled by the rule.</param>
 public DesktopAccessRule(string identity, DesktopRights desktopRights, AccessControlType type)
     : this(new NTAccount(identity), desktopRights, type)
 {
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DesktopAccessRule"/> class.
 /// </summary>
 /// <param name="identity">The identity of the user to be granted or denied 
 /// the associated rights.</param>
 /// <param name="desktopRights">The desktop rights allowed or denied.</param>
 /// <param name="type">The type of access controlled by the rule.</param>
 public DesktopAccessRule(IdentityReference identity, DesktopRights desktopRights, AccessControlType type)
     : base(identity, (int)desktopRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
Esempio n. 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DesktopAuditRule"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="desktopRights">The desktop rights.</param>
 /// <param name="type">The type.</param>
 public DesktopAuditRule(string identity, DesktopRights desktopRights, AuditFlags type)
     : this(new NTAccount(identity), desktopRights, type)
 {
 }
Esempio n. 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DesktopAuditRule"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="desktopRights">The desktop rights.</param>
 /// <param name="type">The type.</param>
 public DesktopAuditRule(IdentityReference identity, DesktopRights desktopRights, AuditFlags type)
     : base(identity, (int)desktopRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }