AuditLookupCategoryNameA function

The AuditLookupCategoryName function retrieves the display name of the specified audit-policy category.

Syntax

BOOLEAN AuditLookupCategoryNameA(
  const GUID *pAuditCategoryGuid,
  PSTR       *ppszCategoryName
);

Parameters

pAuditCategoryGuid

A pointer to a GUID structure that specifies an audit-policy category.

ppszCategoryName

The address of a pointer to a null-terminated string that contains the display name of the audit-policy category specified by the pAuditCategoryGuid function.

When you have finished using this string, 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.

Requirements

   
Windows version Windows Vista [desktop apps only] Windows Server 2008 [desktop apps only]
Target Platform Windows
Header ntsecapi.h
Library Advapi32.lib
DLL Advapi32.dll

See Also

AuditLookupSubCategoryName