API Reference
RegistryAclControl
Evaluates registry key DACL against a set of required ACEs. Desired entries format: "Principal|Rights|Allow". Rights accept RegistryRights tokens (e.g., FullControl, ReadKey, WriteKey).
Inheritance
- Object
- RegistryAclControl
Constructors
public RegistryAclControl(String id, String title, String keyPath) #Creates a registry ACL control for a specific key path.
Parameters
- id System.String
- title System.String
- keyPath System.String
Methods
public virtual CxEval Evaluate(String host, CxFacts facts) #CxEvalEvaluates current DACL against required ACE entries.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean IsApplicable(CxFacts facts) #BooleanTrue when the control applies to the provided facts.
Parameters
- facts ComputerX.Controls.CxFacts
public virtual Object ReadCurrent(String host, CxFacts facts) #ObjectReads and formats the current DACL of the key into comparison lines.
Parameters
- host System.String
- facts ComputerX.Controls.CxFacts
public virtual Boolean TryWrite(String host, Object value, out String error) #BooleanWrite is not supported for this control.
Parameters
- host System.String
- value System.Object
- error System.String@
public RegistryAclControl WhereIs(CxCondition c) #RegistryAclControlSets an applicability condition.
Parameters
- c ComputerX.Controls.CxCondition
public RegistryAclControl WithDesired(CxVendor vendor, IEnumerable<String> aceEntries, String ruleId = null, String note = null, String description = null, String referenceUrl = null, String severity = null, String category = null, String[] tags = null) #RegistryAclControlAdds desired ACE entries in the form "Principal|Rights|Allow|Deny|Max".
Parameters
- vendor ComputerX.Controls.CxVendor
- aceEntries System.Collections.Generic.IEnumerable{System.String}
- ruleId System.String = null
- note System.String = null
- description System.String = null
- referenceUrl System.String = null
- severity System.String = null
- category System.String = null
- tags System.String[] = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public virtual String Id { get; } #Unique identifier for the control.
public virtual String Title { get; } #Display title for the control.
public virtual CxValueKind ValueKind { get; } #Value kind (string list of ACL lines).
public virtual CxComparator Comparator { get; } #Comparator semantics (Superset: current must contain all required entries).
public String KeyPath { get; } #Registry key path (HKLM/HKCU/etc.).
public CxCondition Where { get; set; } #Optional applicability condition.
public virtual IReadOnlyList<CxDesired> Desired { get; } #Desired ACE entries as vendor-tagged lists.