advapi32: add OpenTraceA/W stubs (1/2) (try 3)
Austin English
austinenglish at gmail.com
Thu Apr 28 16:06:23 CDT 2011
Spec file fixed, defining INVALID_HANDLE_VALUE in header, consistent LastError.
--
-Austin
-------------- next part --------------
diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec
index 9bb202d..59a4084 100644
--- a/dlls/advapi32/advapi32.spec
+++ b/dlls/advapi32/advapi32.spec
@@ -441,8 +441,8 @@
@ stdcall OpenServiceA(long str long)
@ stdcall OpenServiceW(long wstr long)
@ stdcall OpenThreadToken(long long long ptr)
-# @ stub OpenTraceA
-# @ stub OpenTraceW
+@ stdcall -ret64 OpenTraceA(ptr)
+@ stdcall -ret64 OpenTraceW(ptr)
@ stdcall PrivilegeCheck(ptr ptr ptr)
@ stdcall PrivilegedServiceAuditAlarmA(str str long ptr long)
@ stdcall PrivilegedServiceAuditAlarmW(wstr wstr long ptr long)
diff --git a/dlls/advapi32/eventlog.c b/dlls/advapi32/eventlog.c
index d76e0de..9927f20 100644
--- a/dlls/advapi32/eventlog.c
+++ b/dlls/advapi32/eventlog.c
@@ -851,3 +851,24 @@ ULONG WINAPI QueryTraceW( TRACEHANDLE handle, LPCWSTR sessionname, PEVENT_TRACE_
FIXME("%s %s %p: stub\n", wine_dbgstr_longlong(handle), debugstr_w(sessionname), properties);
return ERROR_CALL_NOT_IMPLEMENTED;
}
+
+/******************************************************************************
+ * OpenTraceA [ADVAPI32.@]
+ */
+TRACEHANDLE WINAPI OpenTraceA( PEVENT_TRACE_LOGFILEA logfile )
+{
+ FIXME("%p: stub\n", logfile);
+ SetLastError(ERROR_ACCESS_DENIED);
+ return INVALID_PROCESSTRACE_HANDLE;
+}
+
+/******************************************************************************
+ * OpenTraceW [ADVAPI32.@]
+ */
+TRACEHANDLE WINAPI OpenTraceW( PEVENT_TRACE_LOGFILEW logfile )
+{
+ FIXME("%p: stub\n", logfile);
+ SetLastError(ERROR_ACCESS_DENIED);
+ return INVALID_PROCESSTRACE_HANDLE;
+}
+
diff --git a/include/evntrace.h b/include/evntrace.h
index 41083ae..e40fc53 100644
--- a/include/evntrace.h
+++ b/include/evntrace.h
@@ -202,6 +202,8 @@ typedef struct _EVENT_TRACE_PROPERTIES
ULONG LoggerNameOffset;
} EVENT_TRACE_PROPERTIES, *PEVENT_TRACE_PROPERTIES;
+#define INVALID_PROCESSTRACE_HANDLE (TRACEHANDLE)(ULONG_PTR)~0u
+
ULONG WINAPI CloseTrace(TRACEHANDLE);
ULONG WINAPI ControlTraceA(TRACEHANDLE,LPCSTR,PEVENT_TRACE_PROPERTIES,ULONG);
ULONG WINAPI ControlTraceW(TRACEHANDLE,LPCWSTR,PEVENT_TRACE_PROPERTIES,ULONG);
--
1.7.3.4
More information about the wine-patches
mailing list