AuditLookupSubCategoryNameA function (ntsecapi.h)

The AuditLookupSubCategoryName function retrieves the display name of the specified audit-policy subcategory.


BOOLEAN AuditLookupSubCategoryNameA(
  [in]  const GUID *pAuditSubCategoryGuid,
  [out] PSTR       *ppszSubCategoryName


[in] pAuditSubCategoryGuid

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

[out] ppszSubCategoryName

The address of a pointer to a null-terminated string that contains the display name of the audit-policy subcategory specified by the pAuditSubCategoryGuid parameter.

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.



The ntsecapi.h header defines AuditLookupSubCategoryName as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.


Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header ntsecapi.h
Library Advapi32.lib
DLL Advapi32.dll

See also