Muokkaa

Jaa


Control GUID File

The control GUID file (.ctl extension) is a text file that specifies the control GUID of the trace provider and a friendly name for the GUID in the format:

ControlGUID GUIDFriendlyName

Developers of trace providers typically supply this file. However, if you have the source code for the trace provider, you can find the GUID and the GUID friendly name, and create a control GUID file.

In the source code, find the definition of the WPP_CONTROL_GUIDS macro. The GUID value and GUID friendly name are shown in bold in the example below.

#define WPP_CONTROL_GUIDS \
    WPP_DEFINE_CONTROL_GUID(GUIDFriendlyName, (ControlGUID),  \
        WPP_DEFINE_BIT(NameOfTraceFlag1)  \
        WPP_DEFINE_BIT(NameOfTraceFlag2)  \
        .............................   \
        .............................   \
        WPP_DEFINE_BIT(NameOfTraceFlag31) )