Export (0) Print
Expand All
Expand Minimize

AuditEnumerateCategories function

The AuditEnumerateCategories function enumerates the available audit-policy categories.

Syntax


BOOLEAN WINAPI AuditEnumerateCategories(
  _Out_  GUID **ppAuditCategoriesArray,
  _Out_  PULONG pCountReturned
);

Parameters

ppAuditCategoriesArray [out]

A pointer to a single buffer that contains both an array of pointers to GUID structures and the structures themselves. The GUID structures specify the audit-policy categories available on the computer.

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

pCountReturned [out]

A pointer to the number of elements in the ppAuditCategoriesArray array.

Return value

If the function succeeds, it returns TRUE.

If the function fails, it returns FALSE. To get extended error information, call GetLastError.

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

See also

AuditEnumerateSubCategories

 

 

Community Additions

ADD
Show:
© 2014 Microsoft