AuditLookupCategoryNameA function (ntsecapi.h)

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

Syntax

BOOLEAN AuditLookupCategoryNameA(
  [in]  const GUID *pAuditCategoryGuid,
  [out] PSTR       *ppszCategoryName
);

Parameters

[in] pAuditCategoryGuid

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

[out] 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.

Remarks

Note

The ntsecapi.h header defines AuditLookupCategoryName 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.

Requirements

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

AuditLookupSubCategoryName