API Reference
Class
AuditPolicyWriter
Writes advanced audit policy via native advapi32 (local machine).
Inheritance
- Object
- AuditPolicyWriter
Methods
SetLocal 2 overloads
public static Boolean SetLocal(Guid subcategoryId, AuditFlag flags) #Returns:
BooleanSets a single subcategory's audit flags on the local machine.
Parameters
- subcategoryId System.Guid
- flags ComputerX.Audit.AuditFlag
public static Int32 SetLocal(IEnumerable<AuditSubcategorySetting> items) #Returns:
Int32Sets many subcategory flags in one call. Returns how many entries attempted.
Parameters
- items System.Collections.Generic.IEnumerable{ComputerX.Audit.AuditSubcategorySetting}
public static Int32 SetLocalViaAuditpol(IEnumerable<AuditSubcategorySetting> items, out List<String> errors) #Returns:
Int32Sets local audit policy via auditpol.exe for the provided subcategories. Local machine only.
Parameters
- items System.Collections.Generic.IEnumerable{ComputerX.Audit.AuditSubcategorySetting}
- Subcategory settings to apply.
- errors System.Collections.Generic.List{System.String}@
- Collects per-subcategory error messages.
Returns
Count of subcategories attempted.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object