[ADVAPI32] Stub OpenTrace and ProcessTrace so newer versions of ProcessExplorer start...
authorMark Jansen <mark.jansen@reactos.org>
Sat, 6 Jan 2018 19:48:21 +0000 (20:48 +0100)
committerMark Jansen <mark.jansen@reactos.org>
Sun, 7 Jan 2018 21:29:17 +0000 (22:29 +0100)
CORE-10312

dll/win32/advapi32/CMakeLists.txt
dll/win32/advapi32/advapi32.spec
dll/win32/advapi32/misc/evntrace.c [new file with mode: 0644]

index 08b08ca..196e67e 100644 (file)
@@ -20,6 +20,7 @@ add_rpc_files(client
 list(APPEND SOURCE
     misc/dllmain.c
     misc/efs.c
+    misc/evntrace.c
     misc/hwprofiles.c
     misc/logon.c
     misc/msi.c
index d4c60be..19193f0 100644 (file)
 432 stdcall OpenServiceA(long str long)
 433 stdcall OpenServiceW(long wstr long)
 434 stdcall OpenThreadToken(long long long ptr)
-435 stub OpenTraceA
-436 stub OpenTraceW
+435 stdcall -ret64 OpenTraceA(ptr)
+436 stdcall -ret64 OpenTraceW(ptr)
 437 stdcall PrivilegeCheck(ptr ptr ptr)
 438 stdcall PrivilegedServiceAuditAlarmA(str str long ptr long)
 439 stdcall PrivilegedServiceAuditAlarmW(wstr wstr long ptr long)
 440 stub ProcessIdleTasks
-441 stub ProcessTrace
+441 stdcall ProcessTrace(ptr long ptr ptr)
 442 stdcall QueryAllTracesA(ptr long ptr) ntdll.EtwQueryAllTracesA
 443 stdcall QueryAllTracesW(ptr long ptr) ntdll.EtwQueryAllTracesW
 444 stdcall QueryRecoveryAgentsOnEncryptedFile(wstr ptr)
diff --git a/dll/win32/advapi32/misc/evntrace.c b/dll/win32/advapi32/misc/evntrace.c
new file mode 100644 (file)
index 0000000..924ce6c
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * PROJECT:     ReactOS system libraries
+ * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
+ * PURPOSE:     advapi32.dll Event tracing stubs
+ * COPYRIGHT:   Copyright 2017 Mark Jansen (mark.jansen@reactos.org)
+ */
+
+#include <wmistr.h>
+#include <evntrace.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(advapi);
+
+
+TRACEHANDLE
+WINAPI
+OpenTraceA(IN PEVENT_TRACE_LOGFILEA Logfile)
+{
+    UNIMPLEMENTED;
+    SetLastError(ERROR_ACCESS_DENIED);
+    return INVALID_PROCESSTRACE_HANDLE;
+}
+
+TRACEHANDLE
+WINAPI
+OpenTraceW(IN PEVENT_TRACE_LOGFILEW Logfile)
+{
+    UNIMPLEMENTED;
+    SetLastError(ERROR_ACCESS_DENIED);
+    return INVALID_PROCESSTRACE_HANDLE;
+}
+
+ULONG
+WINAPI
+ProcessTrace(IN PTRACEHANDLE HandleArray,
+             IN ULONG HandleCount,
+             IN LPFILETIME StartTime,
+             IN LPFILETIME EndTime)
+{
+    UNIMPLEMENTED;
+    return ERROR_NOACCESS;
+}
+