AuditLookupCategoryGuidFromCategoryId function

The AuditLookupCategoryGuidFromCategoryId function retrieves a GUID structure that represents the specified audit-policy category.

Syntax


BOOLEAN WINAPI AuditLookupCategoryGuidFromCategoryId(
  _In_  POLICY_AUDIT_EVENT_TYPE AuditCategoryId,
  _Out_ GUID                    *pAuditCategoryGuid
);

Parameters

AuditCategoryId [in]

An element of the POLICY_AUDIT_EVENT_TYPE enumeration that specifies an audit-policy category.

pAuditCategoryGuid [out]

A pointer to a GUID structure that represents the audit-policy category specified by the AuditCategoryId

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

Ntsecapi.h

Library

Advapi32.lib

DLL

Advapi32.dll

See also

AuditLookupCategoryIdFromCategoryGuid

 

 

Show: