[SDK][NDK] Move SYSTEM_POWER_INFORMATION to ntpoapi.h (#869)
[reactos.git] / sdk / include / xdk / wmitypes.h
1 /******************************************************************************
2 * WMI Library Support Types *
3 ******************************************************************************/
4
5 #ifdef RUN_WPP
6 #include <evntrace.h>
7 #include <stdarg.h>
8 #endif
9
10 #ifndef _TRACEHANDLE_DEFINED
11 #define _TRACEHANDLE_DEFINED
12 typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE;
13 #endif
14
15 #ifndef TRACE_INFORMATION_CLASS_DEFINE
16
17 typedef struct _ETW_TRACE_SESSION_SETTINGS {
18 ULONG Version;
19 ULONG BufferSize;
20 ULONG MinimumBuffers;
21 ULONG MaximumBuffers;
22 ULONG LoggerMode;
23 ULONG FlushTimer;
24 ULONG FlushThreshold;
25 ULONG ClockType;
26 } ETW_TRACE_SESSION_SETTINGS, *PETW_TRACE_SESSION_SETTINGS;
27
28 typedef enum _TRACE_INFORMATION_CLASS {
29 TraceIdClass,
30 TraceHandleClass,
31 TraceEnableFlagsClass,
32 TraceEnableLevelClass,
33 GlobalLoggerHandleClass,
34 EventLoggerHandleClass,
35 AllLoggerHandlesClass,
36 TraceHandleByNameClass,
37 LoggerEventsLostClass,
38 TraceSessionSettingsClass,
39 LoggerEventsLoggedClass,
40 MaxTraceInformationClass
41 } TRACE_INFORMATION_CLASS;
42
43 #endif /* TRACE_INFORMATION_CLASS_DEFINE */
44
45 #ifndef _ETW_KM_
46 #define _ETW_KM_
47 #endif
48
49 #include <evntprov.h>
50
51 _IRQL_requires_same_
52 typedef VOID
53 (NTAPI *PETWENABLECALLBACK)(
54 _In_ LPCGUID SourceId,
55 _In_ ULONG ControlCode,
56 _In_ UCHAR Level,
57 _In_ ULONGLONG MatchAnyKeyword,
58 _In_ ULONGLONG MatchAllKeyword,
59 _In_opt_ PEVENT_FILTER_DESCRIPTOR FilterData,
60 _Inout_opt_ PVOID CallbackContext);
61
62 #define EVENT_WRITE_FLAG_NO_FAULTING 0x00000001
63