Calling AuditQuerySystemPolicy() (advapi32.dll) from C# returns “The parameter is incorrect”
- 阅读更多 关于 Calling AuditQuerySystemPolicy() (advapi32.dll) from C# returns “The parameter is incorrect”
问题 The sequence is like follows: Open a policy handle with LsaOpenPolicy() (not shown) Call LsaQueryInformationPolicy() to get the number of categories; For each category: Call AuditLookupCategoryGuidFromCategoryId() to turn the enum value into a GUID; Call AuditEnumerateSubCategories() to get a list of the GUIDs of all subcategories; Call AuditQuerySystemPolicy() to get the audit policies for the subcategories. All of these work and return expected, sensible values except the last. Calling