Add TRACEHANDLE for ETW API
@@ -1474,6 +1474,8 @@ typedef enum _SYSTEM_INFORMATION_CLASS
// SystemCodeIntegrityAddDynamicStore = 234,
// SystemCodeIntegrityClearDynamicStores = 235.
// SystemDifPoolTrackingInformation = 236
+ // SystemPoolZeroingInformation = 237
+ // SystemDpcWatchdogInformation = 238
MaxSystemInfoClass
} SYSTEM_INFORMATION_CLASS;
@@ -1933,6 +1935,11 @@ typedef struct _SYSTEM_SET_TIME_ADJUST_INFORMATION_PRECISE
BOOLEAN Enable;
} SYSTEM_SET_TIME_ADJUST_INFORMATION_PRECISE, *PSYSTEM_SET_TIME_ADJUST_INFORMATION_PRECISE;
+#ifndef _TRACEHANDLE_DEFINED
+#define _TRACEHANDLE_DEFINED
+typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE;
+#endif
+
typedef enum _EVENT_TRACE_INFORMATION_CLASS
{
EventTraceKernelVersionInformation, // EVENT_TRACE_VERSION_INFORMATION
@@ -1978,7 +1985,7 @@ typedef struct _PERFINFO_GROUPMASK
typedef struct _EVENT_TRACE_GROUPMASK_INFORMATION
{
EVENT_TRACE_INFORMATION_CLASS EventTraceInformationClass;
- HANDLE TraceHandle;
+ TRACEHANDLE TraceHandle;
PERFINFO_GROUPMASK EventTraceGroupMasks;
} EVENT_TRACE_GROUPMASK_INFORMATION, *PEVENT_TRACE_GROUPMASK_INFORMATION;
@@ -1998,7 +2005,7 @@ typedef struct _EVENT_TRACE_SESSION_SECURITY_INFORMATION
{
EVENT_TRACE_INFORMATION_CLASS EventTraceInformationClass;
ULONG SecurityInformation;
- HANDLE TraceHandle;
+ TRACEHANDLE TraceHandle;
UCHAR SecurityDescriptor[1];
} EVENT_TRACE_SESSION_SECURITY_INFORMATION, *PEVENT_TRACE_SESSION_SECURITY_INFORMATION;
@@ -2014,7 +2021,7 @@ typedef struct _EVENT_TRACE_SPINLOCK_INFORMATION
typedef struct _EVENT_TRACE_SYSTEM_EVENT_INFORMATION
{
EVENT_TRACE_INFORMATION_CLASS EventTraceInformationClass;
- HANDLE TraceHandle;
+ TRACEHANDLE TraceHandle;
ULONG HookId[1];
} EVENT_TRACE_SYSTEM_EVENT_INFORMATION, *PEVENT_TRACE_SYSTEM_EVENT_INFORMATION;
@@ -2035,14 +2042,14 @@ typedef struct _EVENT_TRACE_HEAP_TRACING_INFORMATION
typedef struct _EVENT_TRACE_TAG_FILTER_INFORMATION
{
EVENT_TRACE_INFORMATION_CLASS EventTraceInformationClass;
- HANDLE TraceHandle;
+ TRACEHANDLE TraceHandle;
ULONG Filter[1];
} EVENT_TRACE_TAG_FILTER_INFORMATION, *PEVENT_TRACE_TAG_FILTER_INFORMATION;
typedef struct _EVENT_TRACE_PROFILE_COUNTER_INFORMATION
{
EVENT_TRACE_INFORMATION_CLASS EventTraceInformationClass;
- HANDLE TraceHandle;
+ TRACEHANDLE TraceHandle;
ULONG ProfileSource[1];
} EVENT_TRACE_PROFILE_COUNTER_INFORMATION, *PEVENT_TRACE_PROFILE_COUNTER_INFORMATION;
@@ -2066,7 +2073,7 @@ typedef struct _EVENT_TRACE_PROFILE_LIST_INFORMATION
typedef struct _EVENT_TRACE_STACK_CACHING_INFORMATION
{
EVENT_TRACE_INFORMATION_CLASS EventTraceInformationClass;
- HANDLE TraceHandle;
+ TRACEHANDLE TraceHandle;
BOOLEAN Enabled;
UCHAR Reserved[3];
ULONG CacheSize;
@@ -2076,7 +2083,7 @@ typedef struct _EVENT_TRACE_STACK_CACHING_INFORMATION
typedef struct _EVENT_TRACE_SOFT_RESTART_INFORMATION
{
EVENT_TRACE_INFORMATION_CLASS EventTraceInformationClass;
- HANDLE TraceHandle;
+ TRACEHANDLE TraceHandle;
BOOLEAN PersistTraceBuffers;
WCHAR FileName[1];
} EVENT_TRACE_SOFT_RESTART_INFORMATION, *PEVENT_TRACE_SOFT_RESTART_INFORMATION;
