evntprov.h header

This header is used by multiple technologies. For more information, see:

evntprov.h contains the following programming interfaces:

Functions

 
EventActivityIdControl

Creates, queries, and sets activity identifiers for use in ETW events.
EventDataDescCreate

Sets the values of an EVENT_DATA_DESCRIPTOR.
EventDescCreate

Sets the values of an event descriptor.
EventDescGetChannel

Retrieves the channel from the event descriptor.
EventDescGetId

Retrieves the event identifier from the event descriptor.
EventDescGetKeyword

Retrieves the keyword from the event descriptor.
EventDescGetLevel

Retrieves the severity level from the event descriptor.
EventDescGetOpcode

Retrieves the operation code from the event descriptor.
EventDescGetTask

Retrieves the task from the event descriptor.
EventDescGetVersion

Retrieves the version from the event descriptor.
EventDescOrKeyword

Adds another keyword to the event descriptor.
EventDescSetChannel

Sets the Channel member of the event descriptor.
EventDescSetId

Sets the Id member of the event descriptor.
EventDescSetKeyword

Sets the Keyword member of the event descriptor.
EventDescSetLevel

Sets the Level member of the event descriptor.
EventDescSetOpcode

Sets the Opcode member of the event descriptor.
EventDescSetTask

Sets the Task member of the event descriptor.
EventDescSetVersion

Sets the Version member of the event descriptor.
EventDescZero

Initializes an event descriptor to zero.
EventEnabled

Determines whether an event provider should generate a particular event based on the event's EVENT_DESCRIPTOR.
EventProviderEnabled

Determines whether an event provider should generate a particular event based on the event's Level and Keyword.
EventRegister

Registers an ETW event provider, creating a handle that can be used to write ETW events.
EventSetInformation

Configures an ETW event provider.
EventUnregister

Unregisters an ETW event provider.
EventWrite

Writes an ETW event that uses the current thread's activity ID.
EventWriteEx

Writes an ETW event with an activity ID, an optional related activity ID, session filters, and special options.
EventWriteString

Writes an ETW event that contains a string as its data. This function should not be used.
EventWriteTransfer

Writes an ETW event with an activity ID and an optional related activity ID.

Callback functions

 
PENABLECALLBACK

ETW event providers optionally define an EnableCallback function to receive configuration change notifications. The PENABLECALLBACK type defines a pointer to this callback function. EnableCallback is a placeholder for the application-defined function name.

Structures

 
EVENT_DATA_DESCRIPTOR

The EVENT_DATA_DESCRIPTOR structure defines a block of data that will be used in an ETW event.
EVENT_DESCRIPTOR

The EVENT_DESCRIPTOR structure contains information (metadata) about an ETW event.
EVENT_FILTER_DESCRIPTOR

Defines the filter data that a session passes to the provider's enable callback function.
EVENT_FILTER_EVENT_ID

Defines event IDs used in an EVENT_FILTER_DESCRIPTOR structure for an event ID or stack walk filter.
EVENT_FILTER_EVENT_NAME

Defines event IDs used in an EVENT_FILTER_DESCRIPTOR structure for an event name or stalk walk name filter.
EVENT_FILTER_HEADER

Defines the header data that must precede the filter data that is defined in the instrumentation manifest.
EVENT_FILTER_LEVEL_KW

Defines event IDs used in an EVENT_FILTER_DESCRIPTOR structure for a stack walk level-keyword filter.

Enumerations

 
EVENT_INFO_CLASS

The EVENT_INFO_CLASS enumeration type is used with the EventSetInformation function to specify the configuration operation to be performed on an ETW event provider registration.