Martin Storsjo : advapi32: Add a stub implementation of EventSetInformation.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon May 11 07:49:04 CDT 2015
Module: wine
Branch: master
Commit: 518e102a7ed96274a67082d01b15d0e036d0f7b2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=518e102a7ed96274a67082d01b15d0e036d0f7b2
Author: Martin Storsjo <martin at martin.st>
Date: Sat May 9 09:06:11 2015 +0300
advapi32: Add a stub implementation of EventSetInformation.
---
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..e885684 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(int64 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..82c6e69 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(int64 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..7f086b9 100644
--- a/include/evntprov.h
+++ b/include/evntprov.h
@@ -59,9 +59,18 @@ 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 EventSetInformation(REGHANDLE, EVENT_INFO_CLASS, PVOID, ULONG);
ULONG WINAPI EventUnregister(REGHANDLE);
ULONG WINAPI EventWrite(REGHANDLE,PCEVENT_DESCRIPTOR,ULONG,PEVENT_DATA_DESCRIPTOR);
More information about the wine-cvs
mailing list