Needed for IE11.
Signed-off-by: Mohamad Al-Jaf mohamadaljaf@gmail.com --- v2: Fix whitespace error. --- dlls/advapi32/advapi32.spec | 2 +- dlls/advapi32/security.c | 16 ++++++++++++++++ include/winbase.h | 1 + 3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index 7d20d88585a..66f66f3bac4 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -12,7 +12,7 @@ # @ stub AccessCheckByTypeAndAuditAlarmW # @ stub AccessCheckByTypeResultList @ stdcall AccessCheckByTypeResultListAndAuditAlarmA(str ptr str str ptr ptr long long long ptr long ptr long ptr ptr ptr) -# @ stub AccessCheckByTypeResultListAndAuditAlarmByHandleA +@ stdcall AccessCheckByTypeResultListAndAuditAlarmByHandleA(str ptr long str str ptr ptr long long long ptr long ptr long ptr ptr ptr) # @ stub AccessCheckByTypeResultListAndAuditAlarmByHandleW # @ stub AccessCheckByTypeResultListAndAuditAlarmW @ stdcall -import AddAccessAllowedAce (ptr long long ptr) diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c index f61bdaf9e9c..5324cd1a0da 100644 --- a/dlls/advapi32/security.c +++ b/dlls/advapi32/security.c @@ -1461,6 +1461,22 @@ BOOL WINAPI AccessCheckByTypeResultListAndAuditAlarmA( LPCSTR subsystem, LPVOID return TRUE; }
+/****************************************************************************** + * AccessCheckByTypeResultListAndAuditAlarmByHandleA [ADVAPI32.@] + */ +BOOL WINAPI AccessCheckByTypeResultListAndAuditAlarmByHandleA( LPCSTR subsystem, LPVOID id, HANDLE token, + LPCSTR type_name, LPCSTR name, PSECURITY_DESCRIPTOR descr, + PSID sid, DWORD access, AUDIT_EVENT_TYPE audit, + DWORD flags, POBJECT_TYPE_LIST types, DWORD length, + PGENERIC_MAPPING mapping, BOOL creation, LPDWORD access_list, + LPDWORD status_list, LPBOOL on_close ) +{ + FIXME( "stub (%s,%p,%p,%s,%s,%p,%p,%08x,%p,%08x,%p,%08x,%p,%x,%p,%p,%p)\n", debugstr_a(subsystem), + id, token, debugstr_a(type_name), debugstr_a(name), descr, sid, access, audit, flags, + types, length, mapping, creation, access_list, status_list, on_close ); + return TRUE; +} + BOOL WINAPI ObjectCloseAuditAlarmA(LPCSTR SubsystemName, LPVOID HandleId, BOOL GenerateOnClose) { FIXME("stub (%s,%p,%x)\n", debugstr_a(SubsystemName), HandleId, GenerateOnClose); diff --git a/include/winbase.h b/include/winbase.h index 72f718fba15..1baf59e9ede 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1782,6 +1782,7 @@ WINADVAPI BOOL WINAPI AccessCheckAndAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LP WINADVAPI BOOL WINAPI AccessCheckByType(PSECURITY_DESCRIPTOR,PSID,HANDLE,DWORD,POBJECT_TYPE_LIST,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL); WINADVAPI BOOL WINAPI AccessCheckByTypeAndAuditAlarmA(LPCSTR,LPVOID,LPCSTR,LPCSTR,PSECURITY_DESCRIPTOR,PSID,DWORD,AUDIT_EVENT_TYPE,DWORD,POBJECT_TYPE_LIST,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPBOOL,LPBOOL); WINADVAPI BOOL WINAPI AccessCheckByTypeResultListAndAuditAlarmA(LPCSTR,LPVOID,LPCSTR,LPCSTR,PSECURITY_DESCRIPTOR,PSID,DWORD,AUDIT_EVENT_TYPE,DWORD,POBJECT_TYPE_LIST,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPDWORD,LPBOOL); +WINADVAPI BOOL WINAPI AccessCheckByTypeResultListAndAuditAlarmByHandleA(LPCSTR,LPVOID,HANDLE,LPCSTR,LPCSTR,PSECURITY_DESCRIPTOR,PSID,DWORD,AUDIT_EVENT_TYPE,DWORD,POBJECT_TYPE_LIST,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPDWORD,LPBOOL); WINBASEAPI VOID WINAPI AcquireSRWLockExclusive(PSRWLOCK); WINBASEAPI VOID WINAPI AcquireSRWLockShared(PSRWLOCK); WINADVAPI BOOL WINAPI AdjustTokenPrivileges(HANDLE,BOOL,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,PDWORD);