- define _WMI_SOURCE_ macro

- include evntrace header
- implement stubs for GetTraceLoggerHandle and TraceEvent and also export them

svn path=/trunk/; revision=33644
This commit is contained in:
Johannes Anderwald 2008-05-22 17:23:47 +00:00
parent 63477f9dd4
commit 27ee5b62b8
3 changed files with 40 additions and 2 deletions

View file

@ -292,7 +292,7 @@ GetSiteSidFromToken@4
GetTokenInformation@20
;GetTraceEnableFlags
;GetTraceEnableLevel
;GetTraceLoggerHandle
GetTraceLoggerHandle@4
GetTrusteeFormA@4
GetTrusteeFormW@4
GetTrusteeNameA@4
@ -651,7 +651,7 @@ SystemFunction035@8
SystemFunction036@8
SystemFunction040@12
SystemFunction041@12
;TraceEvent
TraceEvent@12
;TraceEventInstance
TraceMessage
;TraceMessageVa

View file

@ -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>

View file

@ -20,4 +20,40 @@ TraceMessage(
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 */