Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

© 2015 Microsoft