Table of contents
Collapse the table of content
Expand the table of content

Can I override the actual tracing function?

Last Updated: 1/24/2017

Yes. You can do this by defining a custom WPP_TRACE macro. You must define your version of this macro before you include the trace message header (.tmh) file in the source file of your trace provider, such as a kernel-mode driver or user-mode application.

For an example of how to define a custom WPP_TRACE macro, see Can I preserve the last-error code before TraceMessage is called?.

Send comments about this topic to Microsoft

© 2017 Microsoft