From 7e01e08939eb5aa3815edf1829d0a3f41a9f591c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Tue, 22 Apr 2014 23:36:12 +0200 Subject: [PATCH] advapi32: Add stub for GetTraceLoggerHandle. --- dlls/advapi32/advapi32.spec | 2 +- dlls/advapi32/eventlog.c | 10 ++++++++++ .../api-ms-win-downlevel-advapi32-l1-1-0.spec | 2 +- include/evntrace.h | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index 46f37fa2d03..9e2ab05c0ca 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -353,7 +353,7 @@ @ stdcall GetTokenInformation(long long ptr long ptr) @ stub GetTraceEnableFlags @ stub GetTraceEnableLevel -@ stub GetTraceLoggerHandle +@ stdcall -ret64 GetTraceLoggerHandle(ptr) @ stdcall GetTrusteeFormA(ptr) @ stdcall GetTrusteeFormW(ptr) @ stdcall GetTrusteeNameA(ptr) diff --git a/dlls/advapi32/eventlog.c b/dlls/advapi32/eventlog.c index a239960895e..828f23be7f2 100644 --- a/dlls/advapi32/eventlog.c +++ b/dlls/advapi32/eventlog.c @@ -377,6 +377,16 @@ BOOL WINAPI GetOldestEventLogRecord( HANDLE hEventLog, PDWORD OldestRecord ) return TRUE; } +/****************************************************************************** + * GetTraceLoggerHandle [ADVAPI32.@] + */ +TRACEHANDLE WINAPI GetTraceLoggerHandle( PVOID buf ) +{ + FIXME("(%p) stub\n", buf); + SetLastError(ERROR_ACCESS_DENIED); + return INVALID_PROCESSTRACE_HANDLE; +} + /****************************************************************************** * NotifyChangeEventLog [ADVAPI32.@] * diff --git a/dlls/api-ms-win-downlevel-advapi32-l1-1-0/api-ms-win-downlevel-advapi32-l1-1-0.spec b/dlls/api-ms-win-downlevel-advapi32-l1-1-0/api-ms-win-downlevel-advapi32-l1-1-0.spec index fd37c8c06d5..73f3207eaf3 100644 --- a/dlls/api-ms-win-downlevel-advapi32-l1-1-0/api-ms-win-downlevel-advapi32-l1-1-0.spec +++ b/dlls/api-ms-win-downlevel-advapi32-l1-1-0/api-ms-win-downlevel-advapi32-l1-1-0.spec @@ -68,7 +68,7 @@ @ stdcall GetTokenInformation(long long ptr long ptr) advapi32.GetTokenInformation @ stub GetTraceEnableFlags @ stub GetTraceEnableLevel -@ stub GetTraceLoggerHandle +@ stdcall -ret64 GetTraceLoggerHandle(ptr) advapi32.GetTraceLoggerHandle @ stdcall InitializeAcl(ptr long long) advapi32.InitializeAcl @ stdcall InitializeSecurityDescriptor(ptr long) advapi32.InitializeSecurityDescriptor @ stdcall InitializeSid(ptr ptr long) advapi32.InitializeSid diff --git a/include/evntrace.h b/include/evntrace.h index 1516485c8ed..418e4373ae2 100644 --- a/include/evntrace.h +++ b/include/evntrace.h @@ -221,6 +221,7 @@ ULONG WINAPI EnableTrace(ULONG,ULONG,ULONG,LPCGUID,TRACEHANDLE); ULONG WINAPI FlushTraceA(TRACEHANDLE,LPCSTR,PEVENT_TRACE_PROPERTIES); ULONG WINAPI FlushTraceW(TRACEHANDLE,LPCWSTR,PEVENT_TRACE_PROPERTIES); #define FlushTrace WINELIB_NAME_AW(FlushTrace) +TRACEHANDLE WINAPI GetTraceLoggerHandle(PVOID); ULONG WINAPI QueryAllTracesA(PEVENT_TRACE_PROPERTIES*,ULONG,PULONG); ULONG WINAPI QueryAllTracesW(PEVENT_TRACE_PROPERTIES*,ULONG,PULONG); #define QueryAllTraces WINELIB_NAME_AW(QueryAllTraces)