Can I tell if my trace provider is enabled for tracing?

Yes, you can use the WPP_LEVEL_ENABLED macro to tell whether your trace provider, such as a kernel-mode driver or user-mode application, is enabled for tracing and which flags are enabled. This is especially useful if your trace provider does extra work to prepare for software tracing.

For example, you can use a condition of the form:

            // Tracing is enabled
            Prepare to trace

Send comments about this topic to Microsoft