[PATCH] advapi32: Add a stub implementation of EventSetInformation
Martin Storsjo
martin at martin.st
Sat May 9 01:06:11 CDT 2015
---
dlls/advapi32/advapi32.spec | 1 +
dlls/advapi32/eventlog.c | 10 ++++++++++
.../api-ms-win-eventing-provider-l1-1-0.spec | 2 +-
include/evntprov.h | 9 +++++++++
4 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec
index e7b7cf7..11ac9b1 100644
--- a/dlls/advapi32/advapi32.spec
+++ b/dlls/advapi32/advapi32.spec
@@ -273,6 +273,7 @@
@ stdcall EventEnabled(int64 ptr)
@ stdcall EventProviderEnabled(int64 long int64)
@ stdcall EventRegister(ptr ptr ptr ptr)
+@ stdcall EventSetInformation(ptr long ptr long)
@ stdcall EventUnregister(int64)
@ stdcall EventWrite(int64 ptr long ptr)
# @ stub EventWriteEndScenario
diff --git a/dlls/advapi32/eventlog.c b/dlls/advapi32/eventlog.c
index 191d817..7839fc4 100644
--- a/dlls/advapi32/eventlog.c
+++ b/dlls/advapi32/eventlog.c
@@ -939,6 +939,16 @@ ULONG WINAPI EventWrite( REGHANDLE handle, PCEVENT_DESCRIPTOR descriptor, ULONG
}
/******************************************************************************
+ * EventSetInformation [ADVAPI32.@]
+ */
+ULONG WINAPI EventSetInformation( REGHANDLE handle, EVENT_INFO_CLASS class, PVOID info,
+ ULONG length )
+{
+ FIXME("%u, %p, %u\n", class, info, length);
+ return ERROR_SUCCESS;
+}
+
+/******************************************************************************
* QueryTraceW [ADVAPI32.@]
*/
ULONG WINAPI QueryTraceW( TRACEHANDLE handle, LPCWSTR sessionname, PEVENT_TRACE_PROPERTIES properties )
diff --git a/dlls/api-ms-win-eventing-provider-l1-1-0/api-ms-win-eventing-provider-l1-1-0.spec b/dlls/api-ms-win-eventing-provider-l1-1-0/api-ms-win-eventing-provider-l1-1-0.spec
index a498097..db4ca41 100644
--- a/dlls/api-ms-win-eventing-provider-l1-1-0/api-ms-win-eventing-provider-l1-1-0.spec
+++ b/dlls/api-ms-win-eventing-provider-l1-1-0/api-ms-win-eventing-provider-l1-1-0.spec
@@ -2,7 +2,7 @@
@ stdcall EventEnabled(int64 ptr) advapi32.EventEnabled
@ stdcall EventProviderEnabled(int64 long int64) advapi32.EventProviderEnabled
@ stdcall EventRegister(ptr ptr ptr ptr) advapi32.EventRegister
-@ stub EventSetInformation
+@ stdcall EventSetInformation(ptr long ptr long) advapi32.EventSetInformation
@ stdcall EventUnregister(int64) advapi32.EventUnregister
@ stdcall EventWrite(int64 ptr long ptr) advapi32.EventWrite
@ stub EventWriteEx
diff --git a/include/evntprov.h b/include/evntprov.h
index 6a3e2f3..7e4e036 100644
--- a/include/evntprov.h
+++ b/include/evntprov.h
@@ -59,11 +59,20 @@ typedef struct _EVENT_FILTER_DESCRIPTOR
typedef VOID (NTAPI *PENABLECALLBACK)(LPCGUID,ULONG,UCHAR,ULONGLONG,ULONGLONG,PEVENT_FILTER_DESCRIPTOR,PVOID);
+typedef enum _EVENT_INFO_CLASS
+{
+ EventProviderBinaryTrackInfo = 0,
+ EventProviderSetTraits,
+ EventProviderUseDescriptorType,
+ MaxEventInfo
+} EVENT_INFO_CLASS;
+
BOOLEAN WINAPI EventEnabled(REGHANDLE, PCEVENT_DESCRIPTOR);
BOOLEAN WINAPI EventProviderEnabled(REGHANDLE, UCHAR, ULONGLONG);
ULONG WINAPI EventRegister(LPCGUID,PENABLECALLBACK,PVOID,PREGHANDLE);
ULONG WINAPI EventUnregister(REGHANDLE);
ULONG WINAPI EventWrite(REGHANDLE,PCEVENT_DESCRIPTOR,ULONG,PEVENT_DATA_DESCRIPTOR);
+ULONG WINAPI EventSetInformation(REGHANDLE, EVENT_INFO_CLASS, PVOID, ULONG);
#ifdef __cplusplus
}
--
1.8.1.2
More information about the wine-patches
mailing list