Commit 04e688a2 authored by Mikolaj Zalewski's avatar Mikolaj Zalewski Committed by Alexandre Julliard

ntdll: Add RtlAddAuditAccessAceEx.

parent 1122dc13
...@@ -402,8 +402,8 @@ ...@@ -402,8 +402,8 @@
@ stub RtlAddActionToRXact @ stub RtlAddActionToRXact
@ stdcall RtlAddAtomToAtomTable(ptr wstr ptr) @ stdcall RtlAddAtomToAtomTable(ptr wstr ptr)
@ stub RtlAddAttributeActionToRXact @ stub RtlAddAttributeActionToRXact
@ stdcall RtlAddAuditAccessAce(ptr long long ptr long long) @ stdcall RtlAddAuditAccessAce(ptr long long ptr long long)
# @ stub RtlAddAuditAccessAceEx @ stdcall RtlAddAuditAccessAceEx(ptr long long long ptr long long)
# @ stub RtlAddAuditAccessObjectAce # @ stub RtlAddAuditAccessObjectAce
# @ stub RtlAddCompoundAce # @ stub RtlAddCompoundAce
# @ stub RtlAddRange # @ stub RtlAddRange
......
...@@ -1213,17 +1213,16 @@ NTSTATUS WINAPI RtlAddAccessDeniedAceEx( ...@@ -1213,17 +1213,16 @@ NTSTATUS WINAPI RtlAddAccessDeniedAceEx(
/************************************************************************** /**************************************************************************
* RtlAddAuditAccessAce [NTDLL.@] * RtlAddAuditAccessAce [NTDLL.@]
*/ */
NTSTATUS WINAPI RtlAddAuditAccessAce( NTSTATUS WINAPI RtlAddAuditAccessAceEx(
IN OUT PACL pAcl, IN OUT PACL pAcl,
IN DWORD dwAceRevision, IN DWORD dwAceRevision,
IN DWORD dwAceFlags,
IN DWORD dwAccessMask, IN DWORD dwAccessMask,
IN PSID pSid, IN PSID pSid,
IN BOOL bAuditSuccess, IN BOOL bAuditSuccess,
IN BOOL bAuditFailure) IN BOOL bAuditFailure)
{ {
DWORD dwAceFlags = 0; TRACE("(%p,%d,0x%08x,0x%08x,%p,%u,%u)\n",pAcl,dwAceRevision,dwAceFlags,dwAccessMask,
TRACE("(%p,%d,%d,%p,%u,%u)\n",pAcl,dwAceRevision,dwAccessMask,
pSid,bAuditSuccess,bAuditFailure); pSid,bAuditSuccess,bAuditFailure);
if (bAuditSuccess) if (bAuditSuccess)
...@@ -1235,6 +1234,20 @@ NTSTATUS WINAPI RtlAddAuditAccessAce( ...@@ -1235,6 +1234,20 @@ NTSTATUS WINAPI RtlAddAuditAccessAce(
return add_access_ace(pAcl, dwAceRevision, dwAceFlags, return add_access_ace(pAcl, dwAceRevision, dwAceFlags,
dwAccessMask, pSid, SYSTEM_AUDIT_ACE_TYPE); dwAccessMask, pSid, SYSTEM_AUDIT_ACE_TYPE);
} }
/**************************************************************************
* RtlAddAuditAccessAce [NTDLL.@]
*/
NTSTATUS WINAPI RtlAddAuditAccessAce(
IN OUT PACL pAcl,
IN DWORD dwAceRevision,
IN DWORD dwAccessMask,
IN PSID pSid,
IN BOOL bAuditSuccess,
IN BOOL bAuditFailure)
{
return RtlAddAuditAccessAceEx(pAcl, dwAceRevision, 0, dwAccessMask, pSid, bAuditSuccess, bAuditFailure);
}
/****************************************************************************** /******************************************************************************
* RtlValidAcl [NTDLL.@] * RtlValidAcl [NTDLL.@]
......
...@@ -1987,6 +1987,7 @@ NTSTATUS WINAPI RtlAddAccessDeniedAce(PACL,DWORD,DWORD,PSID); ...@@ -1987,6 +1987,7 @@ NTSTATUS WINAPI RtlAddAccessDeniedAce(PACL,DWORD,DWORD,PSID);
NTSTATUS WINAPI RtlAddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID); NTSTATUS WINAPI RtlAddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID);
NTSTATUS WINAPI RtlAddAtomToAtomTable(RTL_ATOM_TABLE,const WCHAR*,RTL_ATOM*); NTSTATUS WINAPI RtlAddAtomToAtomTable(RTL_ATOM_TABLE,const WCHAR*,RTL_ATOM*);
NTSTATUS WINAPI RtlAddAuditAccessAce(PACL,DWORD,DWORD,PSID,BOOL,BOOL); NTSTATUS WINAPI RtlAddAuditAccessAce(PACL,DWORD,DWORD,PSID,BOOL,BOOL);
NTSTATUS WINAPI RtlAddAuditAccessAceEx(PACL,DWORD,DWORD,DWORD,PSID,BOOL,BOOL);
void WINAPI RtlAddRefActivationContext(HANDLE); void WINAPI RtlAddRefActivationContext(HANDLE);
PVOID WINAPI RtlAddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER); PVOID WINAPI RtlAddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER);
NTSTATUS WINAPI RtlAdjustPrivilege(ULONG,BOOLEAN,BOOLEAN,PBOOLEAN); NTSTATUS WINAPI RtlAdjustPrivilege(ULONG,BOOLEAN,BOOLEAN,PBOOLEAN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment