AuditLookupCategoryIdFromCategoryGuid function

The AuditLookupCategoryIdFromCategoryGuid function retrieves an element of the POLICY_AUDIT_EVENT_TYPE enumeration that represents the specified audit-policy category.

Syntax

BOOLEAN AuditLookupCategoryIdFromCategoryGuid(
  const GUID               *pAuditCategoryGuid,
  PPOLICY_AUDIT_EVENT_TYPE pAuditCategoryId
);

Parameters

pAuditCategoryGuid

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

pAuditCategoryId

A pointer to an element of the POLICY_AUDIT_EVENT_TYPE enumeration that represents the audit-policy category specified by the pAuditCategoryGuid parameter.

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

AuditLookupCategoryGuidFromCategoryId