evntrace.h header
This header is used by multiple technologies. For more information, see:
evntrace.h contains the following programming interfaces:
Functions
| CloseTrace The CloseTrace function closes a trace processing session that was created with OpenTrace. |
| ControlTraceA The ControlTrace function flushes, queries, updates, or stops the specified event tracing session. |
| ControlTraceW The ControlTrace function flushes, queries, updates, or stops the specified event tracing session. |
| CreateTraceInstanceId A RegisterTraceGuids-based ("Classic") event provider uses the CreateTraceInstanceId function to create a unique transaction identifier and map it to a registration handle. The provider can then use the transaction identifier when calling the TraceEventInstance function. |
| EnableTrace A trace session controller calls EnableTrace to configure how an ETW event provider logs events to a trace session. The EnableTraceEx2 function supersedes this function. |
| EnableTraceEx A trace session controller calls EnableTraceEx to configure how an ETW event provider logs events to a trace session. The EnableTraceEx2 function supersedes this function. |
| EnableTraceEx2 A trace session controller calls EnableTraceEx2 to configure how an ETW event provider logs events to a trace session. |
| EnumerateTraceGuids Retrieves information about event trace providers that are currently running on the computer. The EnumerateTraceGuidsEx function supersedes this function. |
| EnumerateTraceGuidsEx Retrieves information about event trace providers that are currently running on the computer. |
| FlushTraceA The FlushTrace function causes an event tracing session to immediately deliver buffered events for the specified session. The ControlTrace function supersedes this function. |
| FlushTraceW The FlushTrace function causes an event tracing session to immediately deliver buffered events for the specified session. The ControlTrace function supersedes this function. |
| GetTraceEnableFlags A RegisterTraceGuids-based ("Classic") event provider uses the GetTraceEnableFlags function to retrieve the enable flags specified by the trace controller to indicate which category of events to trace. Providers call this function from their ControlCallback function. |
| GetTraceEnableLevel A RegisterTraceGuids-based ("Classic") event provider uses the GetTraceEnableLevel function to retrieve the enable level specified by the trace controller to indicate which level of events to trace. Providers call this function from their ControlCallback function. |
| GetTraceLoggerHandle A RegisterTraceGuids-based ("Classic") event provider uses the GetTraceLoggerHandle function to retrieve the handle of the event tracing session to which it should write events. Providers call this function from their ControlCallback function. |
| OpenTraceA The OpenTrace function opens an ETW trace processing handle for consuming events from an ETW real-time trace session or an ETW log file. |
| OpenTraceW The OpenTrace function opens an ETW trace processing handle for consuming events from an ETW real-time trace session or an ETW log file. |
| ProcessTrace Delivers events from one or more trace processing sessions to the consumer. |
| QueryAllTracesA The QueryAllTraces function retrieves the properties and statistics for all event tracing sessions for which the caller has permissions to query. |
| QueryAllTracesW The QueryAllTraces function retrieves the properties and statistics for all event tracing sessions for which the caller has permissions to query. |
| QueryTraceA The QueryTrace function retrieves the property settings and session statistics for the specified event tracing session. The ControlTrace function supersedes this function. |
| QueryTraceProcessingHandle Retrieves information about an ETW trace processing session opened by OpenTrace. |
| QueryTraceW The QueryTrace function retrieves the property settings and session statistics for the specified event tracing session. The ControlTrace function supersedes this function. |
| RegisterTraceGuidsA Registers a "Classic" (Windows 2000-style) ETW event trace provider and the event trace classes that it uses to generate events. This function is obsolete. |
| RegisterTraceGuidsW Registers a "Classic" (Windows 2000-style) ETW event trace provider and the event trace classes that it uses to generate events. This function is obsolete. |
| RemoveTraceCallback The RemoveTraceCallback function stops an EventCallback function from receiving events for an event trace class. This function is obsolete. |
| SetTraceCallback The SetTraceCallback function specifies an EventCallback function to process events for the specified event trace class. This function is obsolete. |
| StartTraceA The StartTrace function starts an event tracing session. (ANSI) |
| StartTraceW The StartTrace function starts an event tracing session. (Unicode) |
| StopTraceA The StopTrace function stops the specified event tracing session. The ControlTrace function supersedes this function. |
| StopTraceW The StopTrace function stops the specified event tracing session. The ControlTrace function supersedes this function. |
| TraceEvent A RegisterTraceGuids-based ("Classic") event provider uses the TraceEvent function to send a structured event to an event tracing session. |
| TraceEventInstance A RegisterTraceGuids-based ("Classic") event provider uses the TraceEventInstance function to send a structured event to an event tracing session with an instance identifier. |
| TraceMessage A RegisterTraceGuids-based ("Classic") event provider uses the TraceMessage function to send a message-based (TMF-based WPP) event to an event tracing session. |
| TraceMessageVa A RegisterTraceGuids-based ("Classic") event provider uses the TraceMessageVa function to send a message-based (TMF-based WPP) event to an event tracing session using va_list parameters. |
| TraceQueryInformation Provides information about an event tracing session. |
| TraceSetInformation Configures event tracing session settings. |
| UnregisterTraceGuids Unregisters a "Classic" (Windows 2000-style) ETW event trace provider that was registered using RegisterTraceGuids. |
| UpdateTraceA The UpdateTrace function updates the property setting of the specified event tracing session. The ControlTrace function supersedes this function. |
| UpdateTraceW The UpdateTrace function updates the property setting of the specified event tracing session. The ControlTrace function supersedes this function. |
Callback functions
| PEVENT_CALLBACK ETW event consumers implement this callback to receive events from a trace processing session. The EventRecordCallback callback supersedes this callback. |
| PEVENT_RECORD_CALLBACK ETW event consumers implement this callback to receive events from a trace processing session. The PEVENT_RECORD_CALLBACK type defines a pointer to this callback function. EventRecordCallback is a placeholder for the application-defined function name. |
| PEVENT_TRACE_BUFFER_CALLBACKA ETW event consumers implement this function to receive statistics about each buffer of events that ETW delivers during a trace processing session. |
| PEVENT_TRACE_BUFFER_CALLBACKW ETW event consumers implement this function to receive statistics about each buffer of events that ETW delivers during a trace processing session. |
| WMIDPREQUEST A RegisterTraceGuids-based ("Classic") event provider implements this function to receive notifications from controllers. The WMIDPREQUEST type defines a pointer to this callback function. ControlCallback is a placeholder for the application-defined function name. |
Structures
| CLASSIC_EVENT_ID Identifies the kernel event for which you want to enable call stack tracing. |
| ENABLE_TRACE_PARAMETERS Contains information used to enable a provider via EnableTraceEx2. |
| ENABLE_TRACE_PARAMETERS_V1 Contains information used to enable a provider via EnableTraceEx2. This structure is obsolete. |
| ETW_BUFFER_CONTEXT Provides context information about the event. |
| ETW_TRACE_PARTITION_INFORMATION Contains partition information pulled from an ETW trace. |
| EVENT_INSTANCE_HEADER The EVENT_INSTANCE_HEADER structure contains standard event tracing information common to all events written by TraceEventInstance. |
| EVENT_INSTANCE_INFO The EVENT_INSTANCE_INFO structure maps a unique transaction identifier to a registered event trace class for TraceEventInstance. |
| EVENT_TRACE The EVENT_TRACE structure is used to deliver event information to an event trace consumer. |
| EVENT_TRACE_HEADER The EVENT_TRACE_HEADER structure contains standard event tracing information common to all events written by TraceEvent. |
| EVENT_TRACE_LOGFILEA The EVENT_TRACE_LOGFILE structure stores information about a trace data source. It is used by trace consumers when calling OpenTrace and when receiving trace data via the user-defined BufferCallback. |
| EVENT_TRACE_LOGFILEW The EVENT_TRACE_LOGFILE structure stores information about a trace data source. It is used by trace consumers when calling OpenTrace and when receiving trace data via the user-defined BufferCallback. |
| EVENT_TRACE_PROPERTIES The EVENT_TRACE_PROPERTIES structure contains information about an event tracing session and is used with APIs such as StartTrace and ControlTrace. |
| EVENT_TRACE_PROPERTIES_V2 The EVENT_TRACE_PROPERTIES_V2 structure contains information about an event tracing session and is used with APIs such as StartTrace and ControlTrace. |
| MOF_FIELD You may use the MOF_FIELD structures to append event data to the EVENT_TRACE_HEADER or EVENT_INSTANCE_HEADER structures. |
| TRACE_ENABLE_INFO Defines the session and the information that the session used to enable the provider. |
| TRACE_GUID_INFO Returned by EnumerateTraceGuidsEx. Defines the header to the list of sessions that enabled a provider. |
| TRACE_GUID_PROPERTIES Returned by EnumerateTraceGuids. Contains information about an event trace provider. |
| TRACE_GUID_REGISTRATION Used with RegisterTraceGuids to register event trace classes. |
| TRACE_LOGFILE_HEADER The TRACE_LOGFILE_HEADER structure contains information about an event tracing session and its events. |
| TRACE_PERIODIC_CAPTURE_STATE_INFO Used with TraceQueryInformation and TraceSetInformation to get or set information relating to a periodic capture state. |
| TRACE_PROVIDER_INSTANCE_INFO Defines an instance of the provider GUID. |
| TRACE_VERSION_INFO Determines the version information of the TraceLogging session. |
Enumerations
| ETW_PROCESS_HANDLE_INFO_TYPE Specifies the operation that will be performed on a trace processing session. |
| TRACE_QUERY_INFO_CLASS Used with EnumerateTraceGuidsEx and TraceSetInformation to specify a type of trace information. |