Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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:
If (WPP_LEVEL_ENABLED(flag) {
// Tracing is enabled
Prepare to trace
DoTraceMessage(flag...);
}