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.
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.
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.
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.
Software applications that can open tmh files:
Microsoft Windows
Software applications that can edit tmh files:
Microsoft Windows
Software capable of saving tmh files:
Microsoft Windows
Software apps that create tmh files:
Microsoft Windows