Export (0) Print
Expand All
Expand Minimize

AuditEnumeratePerUserPolicy function

The AuditEnumeratePerUserPolicy function enumerates users for whom per-user auditing policy is specified.

Syntax


BOOLEAN WINAPI AuditEnumeratePerUserPolicy(
  _Out_  PPOLICY_AUDIT_SID_ARRAY *ppAuditSidArray
);

Parameters

ppAuditSidArray [out]

A pointer to a single buffer that contains both an array of pointers to POLICY_AUDIT_SID_ARRAY structures and the structures themselves. The POLICY_AUDIT_SID_ARRAY structures specify the users for whom per-user audit policy is specified.

When you have finished using this buffer, free it by calling the AuditFree function.

Return value

If the function succeeds, it returns TRUE.

If the function fails, it returns FALSE. To get extended error information, call GetLastError. GetLastError may return one of the following error codes defined in WinError.h.

Return code/valueDescription
ERROR_ACCESS_DENIED
5

The caller does not have the privilege or access rights necessary to call this function.

ERROR_INVALID_PARAMETER
87

One or more parameters are invalid.

 

Remarks

To successfully call this function, the caller must have SeSecurityPrivilege or have AUDIT_ENUMERATE_USERS access on the Audit security object.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Ntsecapi.h

Library

Advapi32.lib

DLL

Advapi32.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft