TRACE_QUERY_INFO_CLASS enumeration (evntrace.h)

Used with EnumerateTraceGuidsEx or TraceSetInformation to specify a type of trace information.

Note that TRACE_INFO_CLASS and TRACE_QUERY_INFO_CLASS are typedefs for the same enumeration.

Syntax

typedef enum _TRACE_QUERY_INFO_CLASS {
  TraceGuidQueryList,
  TraceGuidQueryInfo,
  TraceGuidQueryProcess,
  TraceStackTracingInfo,
  TraceSystemTraceEnableFlagsInfo,
  TraceSampledProfileIntervalInfo,
  TraceProfileSourceConfigInfo,
  TraceProfileSourceListInfo,
  TracePmcEventListInfo,
  TracePmcCounterListInfo,
  TraceSetDisallowList,
  TraceVersionInfo,
  TraceGroupQueryList,
  TraceGroupQueryInfo,
  TraceDisallowListQuery,
  TraceInfoReserved15,
  TracePeriodicCaptureStateListInfo,
  TracePeriodicCaptureStateInfo,
  TraceProviderBinaryTracking,
  TraceMaxLoggersQuery,
  TraceLbrConfigurationInfo,
  TraceLbrEventListInfo,
  TraceMaxPmcCounterQuery,
  TraceStreamCount,
  TraceStackCachingInfo,
  TracePmcCounterOwners,
  TraceUnifiedStackCachingInfo,
  MaxTraceSetInfoClass
} TRACE_QUERY_INFO_CLASS, TRACE_INFO_CLASS;

Constants

 
TraceGuidQueryList
Query for an array of GUIDs of the providers that are registered on the
computer.
TraceGuidQueryInfo
Query for information that each session used to enable the provider.
TraceGuidQueryProcess
Query for an array of GUIDs of the providers that registered themselves in the
same process as the calling process.
TraceStackTracingInfo
Query the setting for call stack tracing for kernel events.

Returns an array of CLASSIC_EVENT_ID
structures. The structures specify the event GUIDs for which stack tracing is
enabled. The array is limited to 256 elements.

The value is supported on Windows 7, Windows Server 2008 R2, and later.
TraceSystemTraceEnableFlagsInfo
Query the setting for the EnableFlags for the system trace provider. For
more information, see the
EVENT_TRACE_PROPERTIES structure.

The value is supported on Windows 8, Windows Server 2012, and later.
TraceSampledProfileIntervalInfo
Queries the setting for the sampling profile interval for the supplied source.

The value is supported on Windows 8, Windows Server 2012, and later.
TraceProfileSourceConfigInfo
Query which sources will be traced.

The value is supported on Windows 8, Windows Server 2012, and later.
TraceProfileSourceListInfo
Query the setting for sampled profile list information.

The value is supported on Windows 8, Windows Server 2012, and later.
TracePmcEventListInfo
Query the list of system events on which performance monitoring counters will be
collected.

The value is supported on Windows 8, Windows Server 2012, and later.
TracePmcCounterListInfo
Query the list of performance monitoring counters to collect

The value is supported on Windows 8, Windows Server 2012, and later.
TraceSetDisallowList
Set the list of providers that are disabled for a provider group enable on this
session. For more information, see
Provider Traits

The value is supported on Windows 10.
TraceVersionInfo
Query the trace file version information.

The value is supported on Windows 10.
TraceGroupQueryList
Query an array of GUIDs of the provider groups that are active on the computer.
TraceGroupQueryInfo
Query information that each session used to enable the provider group.
TraceDisallowListQuery
Query an array of GUIDs that are disallowed for group enables on this session.
TracePeriodicCaptureStateListInfo
Query the list of periodic capture states to collect.
TracePeriodicCaptureStateInfo
Queries the settings used for periodic capture state.
TraceProviderBinaryTracking
Instructs ETW to begin tracking binaries for all providers that are enabled to
the session. The tracking applies to providers that are enabled to the session
at the time of the call as well as to all future providers that are enabled to
the session.

ETW generates tracking events that contain a mapping between provider GUID(s)
and the path to the module containing the callback for the tracked provider. In
the case of a realtime session, the events are provided live in the realtime
buffers. In the case of a file-based session (i.e. if the trace is saved to an
.etl file), the events are aggregated and written to the file header; they will
be among the first events the ETW runtime provides when the .etl file is played
back.

The binary tracking events will have provider id EventTraceGuid and opcode
0x43.

The value is supported on Windows 10, version 1709 and later.
TraceMaxLoggersQuery
Queries the currently-configured maximum number of system loggers allowed by the
operating system. Returns a ULONG. Used with
EnumerateTraceGuidsEx.

The value is supported on Windows 10, version 1709 and later.
MaxTraceSetInfoClass
Marks the last value in the enumeration. Do not use.

Remarks

The TRACE_INFO_CLASS and TRACE_QUERY_INFO_CLASS enumerations both define the same values. Use both enumerations with the EnumerateTraceGuidsEx function or the TraceSetInformation function.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header evntrace.h

See also

EnumerateTraceGuidsEx

TraceSetInformation