mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
- 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:
parent
63477f9dd4
commit
27ee5b62b8
3 changed files with 40 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue