TMH

tmh icon

Trace message header

File type: Source code and script file

A trace message header is a text header generated for a trace provider that uses Windows software trace preprocessor (WPP) macros. It contains declarations and macros used by the provider's tracing code.

What is tmh file?

File type category:
Source code and script file

Date updated: November 22, 2026

The TMH file is generated by WPP for a trace provider, such as a kernel-mode driver or a user-mode application. It contains declarations of functions and variables used by the generated tracing code, along with macros that provide trace-message formatting information for the provider's PDB file.

WPP creates the header automatically as part of building a trace provider that uses WPP macros. The file has the same base name as its source file, uses the .tmh file extension, and is saved in the source file's directory. It is a build-generated support file, not usually edited by hand.

How to open tmh file?

On Windows, use a text editor to inspect the TMH file. The Microsoft Windows SDK's WPP tools generate the header during a build; it is normally included by the provider's source code rather than opened or edited directly.

How to convert tmh file?

A TMH file has no useful standalone conversion. It is generated from the trace provider's source during a WPP-enabled build, so make changes to the source and rebuild the provider rather than converting the header.

Suggested software to open tmh file:

Associated software actions with the tmh file

Software applications that can open tmh files:

Software applications that can edit tmh files:

Software capable of saving tmh files:

Software apps that create tmh files:

Related file extensions