AuditLookupCategoryName function
The AuditLookupCategoryName function retrieves the display name of the specified audit-policy category.
Syntax
BOOLEAN WINAPI AuditLookupCategoryName(
_In_ const GUID *pAuditCategoryGuid,
_Out_ PTSTR *ppszCategoryName
);
Parameters
- pAuditCategoryGuid [in]
-
A pointer to a GUID structure that specifies an audit-policy category.
- ppszCategoryName [out]
-
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
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
AuditLookupCategoryNameW (Unicode) and AuditLookupCategoryNameA (ANSI) |
See also