Ejemplo n.º 1
0
 public DesktopAccessRule(IdentityReference identity, DesktopRights desktopRights, AccessControlType type)
     : base(
         identity,
         DesktopAccessRule.AccessMaskFromRights(desktopRights, type),
         false /* isInherited */,
         InheritanceFlags.None,
         PropagationFlags.None,
         type)
 {
 }
Ejemplo n.º 2
0
 public DesktopAuditRule(IdentityReference identity, DesktopRights desktopRights, AuditFlags flags)
     : base(
         identity,
         DesktopAuditRule.AccessMaskFromRights(desktopRights),
         false /* isInherited */,
         InheritanceFlags.None,
         PropagationFlags.None,
         flags)
 {
 }
Ejemplo n.º 3
0
 internal static int AccessMaskFromRights(DesktopRights desktopRights)
 {
     return((int)desktopRights);
 }
Ejemplo n.º 4
0
 internal static int AccessMaskFromRights(DesktopRights desktopRights, AccessControlType controlType)
 {
     return((int)desktopRights);
 }
Ejemplo n.º 5
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)
 {
 }
Ejemplo 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)
 {
 }
Ejemplo n.º 7
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)
 {
 }
Ejemplo 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)
 {
 }
Ejemplo n.º 9
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)
 {
 }
Ejemplo 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)
 {
 }
Ejemplo 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)
 {
 }
Ejemplo 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)
 {
 }