Author: janderwald
Date: Thu May 22 12:23:47 2008
New Revision: 33644
URL:
http://svn.reactos.org/svn/reactos?rev=33644&view=rev
Log:
- define _WMI_SOURCE_ macro
- include evntrace header
- implement stubs for GetTraceLoggerHandle and TraceEvent and also export them
Modified:
trunk/reactos/dll/win32/advapi32/advapi32.def
trunk/reactos/dll/win32/advapi32/advapi32.h
trunk/reactos/dll/win32/advapi32/misc/trace.c
Modified: trunk/reactos/dll/win32/advapi32/advapi32.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/advapi3…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/advapi32.def [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/advapi32.def [iso-8859-1] Thu May 22 12:23:47 2008
@@ -292,7 +292,7 @@
GetTokenInformation@20
;GetTraceEnableFlags
;GetTraceEnableLevel
-;GetTraceLoggerHandle
+GetTraceLoggerHandle@4
GetTrusteeFormA@4
GetTrusteeFormW@4
GetTrusteeNameA@4
@@ -651,7 +651,7 @@
SystemFunction036@8
SystemFunction040@12
SystemFunction041@12
-;TraceEvent
+TraceEvent@12
;TraceEventInstance
TraceMessage
;TraceMessageVa
Modified: trunk/reactos/dll/win32/advapi32/advapi32.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/advapi3…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/advapi32.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/advapi32.h [iso-8859-1] Thu May 22 12:23:47 2008
@@ -15,9 +15,11 @@
/* PSDK/NDK Headers */
#define WIN32_NO_STATUS
+#define _WMI_SOURCE_
#include <windows.h>
#include <accctrl.h>
#include <aclapi.h>
+#include <evntrace.h>
#include <sddl.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
Modified: trunk/reactos/dll/win32/advapi32/misc/trace.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/misc/tr…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/misc/trace.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/misc/trace.c [iso-8859-1] Thu May 22 12:23:47 2008
@@ -20,4 +20,40 @@
return ERROR_SUCCESS;
}
+TRACEHANDLE
+WMIAPI
+GetTraceLoggerHandle(
+ PVOID Buffer
+)
+{
+ DPRINT1("GetTraceLoggerHandle stub()\n");
+ return (TRACEHANDLE)INVALID_HANDLE_VALUE;
+}
+
+
+ULONG
+WMIAPI
+TraceEvent(
+ TRACEHANDLE SessionHandle,
+ PEVENT_TRACE_HEADER EventTrace
+)
+{
+ DPRINT1("TraceEvent stub()\n");
+
+ if (!SessionHandle || !EventTrace)
+ {
+ /* invalid parameters */
+ return ERROR_INVALID_PARAMETER;
+ }
+
+ if (EventTrace->Size != sizeof(EVENT_TRACE_HEADER))
+ {
+ /* invalid parameter */
+ return ERROR_INVALID_PARAMETER;
+ }
+
+ return ERROR_SUCCESS;
+}
+
+
/* EOF */