{
public sealed class RegistryAccessRule : AccessRule
{
- RegistryRights rights;
-
public RegistryAccessRule (IdentityReference identity,
RegistryRights registryRights,
AccessControlType type)
InheritanceFlags inheritanceFlags,
PropagationFlags propagationFlags,
AccessControlType type)
- // FIXME: accessMask=0 likely causes an error
- : base (identity.Translate(typeof(SecurityIdentifier)), 0, false, inheritanceFlags, propagationFlags, type)
+ : this (identity, registryRights, false, inheritanceFlags, propagationFlags, type)
{
- this.rights = registryRights;
}
+ internal RegistryAccessRule (IdentityReference identity,
+ RegistryRights registryRights,
+ bool isInherited,
+ InheritanceFlags inheritanceFlags,
+ PropagationFlags propagationFlags,
+ AccessControlType type)
+ : base (identity, (int)registryRights, isInherited, inheritanceFlags, propagationFlags, type)
+ {
+ }
+
public RegistryAccessRule (string identity,
RegistryRights registryRights,
InheritanceFlags inheritanceFlags,
: this (new NTAccount (identity), registryRights, inheritanceFlags, propagationFlags, type)
{
}
-
+
public RegistryRights RegistryRights {
- get { return rights; }
+ get { return (RegistryRights)AccessMask; }
}
}
}