AuthzInitializeObjectAccessAuditEvent function
The AuthzInitializeObjectAccessAuditEvent function initializes auditing for an object.
Syntax
BOOL WINAPI AuthzInitializeObjectAccessAuditEvent( _In_ DWORD Flags, _In_ AUTHZ_AUDIT_EVENT_TYPE_HANDLE hAuditEventType, _In_ PWSTR szOperationType, _In_ PWSTR szObjectType, _In_ PWSTR szObjectName, _In_ PWSTR szAdditionalInfo, _Out_ PAUTHZ_AUDIT_EVENT_HANDLE phAuditEvent, _In_ DWORD dwAdditionalParamCount );
Parameters
- Flags [in]
-
Modifies the audit. This parameter can be one of the following values.
- hAuditEventType [in]
-
Reserved. This parameter should be set to NULL.
- szOperationType [in]
-
String that indicates the operation that is to be audited.
- szObjectType [in]
-
String that indicates the type of object being accessed.
- szObjectName [in]
-
String the indicates the name of the object being accessed.
- szAdditionalInfo [in]
-
String, defined by the Resource Manager, for additional audit information.
- phAuditEvent [out]
-
Pointer that receives an AUTHZ_AUDIT_EVENT_HANDLE structure.
- dwAdditionalParamCount [in]
-
Must be set to zero.
Return value
If the function succeeds, it returns TRUE.
If the function fails, it returns FALSE. For extended error information, call GetLastError.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Redistributable |
Windows Server 2003 Administration Tools Pack on Windows XP |
|
Header |
|
|
Library |
|
|
DLL |
|
See also