mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 12:55:43 +00:00
- check if PEVENT_TRACE_HEADER is already defined
- define WMIAPI macro - add TraceEvent, GetTraceLoogerHandler prototypes - PEVENT_TRACE_HEADER should not be defined in the NDK svn path=/trunk/; revision=33643
This commit is contained in:
parent
5db224e2b9
commit
63477f9dd4
2 changed files with 29 additions and 3 deletions
|
@ -29,7 +29,10 @@ Author:
|
||||||
//
|
//
|
||||||
// Don't include WMI headers just for one define
|
// Don't include WMI headers just for one define
|
||||||
//
|
//
|
||||||
|
#ifndef PEVENT_TRACE_HEADER_DEFINED
|
||||||
|
#define PEVENT_TRACE_HEADER_DEFINED
|
||||||
typedef struct _EVENT_TRACE_HEADER *PEVENT_TRACE_HEADER;
|
typedef struct _EVENT_TRACE_HEADER *PEVENT_TRACE_HEADER;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NTOS_MODE_USER
|
#ifndef NTOS_MODE_USER
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,5 +1,15 @@
|
||||||
#ifndef ENVTRACE_H
|
#ifndef _EVNTRACE_
|
||||||
#define ENVTRACE_H
|
#define _EVNTRACE_
|
||||||
|
|
||||||
|
#ifndef WMIAPI
|
||||||
|
#ifndef MIDL_PASS
|
||||||
|
#ifdef _WMI_SOURCE_
|
||||||
|
#define WMIAPI __stdcall
|
||||||
|
#else
|
||||||
|
#define WMIAPI DECLSPEC_IMPORT __stdcall
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct _EVENT_TRACE_HEADER
|
typedef struct _EVENT_TRACE_HEADER
|
||||||
{
|
{
|
||||||
|
@ -37,7 +47,20 @@ typedef struct _EVENT_TRACE_HEADER
|
||||||
};
|
};
|
||||||
ULONG64 ProcessorTime;
|
ULONG64 ProcessorTime;
|
||||||
};
|
};
|
||||||
} EVENT_TRACE_HEADER, *PEVENT_TRACE_HEADER;
|
} EVENT_TRACE_HEADER;
|
||||||
|
|
||||||
|
#ifndef PEVENT_TRACE_HEADER_DEFINED
|
||||||
|
#define PEVENT_TRACE_HEADER_DEFINED
|
||||||
|
typedef struct _EVENT_TRACE_HEADER *PEVENT_TRACE_HEADER;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE;
|
||||||
|
|
||||||
|
|
||||||
|
ULONG WMIAPI TraceEvent(TRACEHANDLE,PEVENT_TRACE_HEADER);
|
||||||
|
TRACEHANDLE WMIAPI GetTraceLoggerHandle(PVOID);
|
||||||
|
|
||||||
|
|
||||||
#endif /* ENVTRACE_H */
|
#endif /* ENVTRACE_H */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue