1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7     FxTelemetryCommon.hpp
8 
9 Abstract:
10 
11     This is header file for telemetry methods common to all WDF components
12 
13 Author:
14 
15 
16 
17 Environment:
18 
19      Both kernel and user mode
20 
21 Revision History:
22 
23 Notes:
24 
25 --*/
26 
27 #pragma once
28 
29 //
30 // The TraceLogging infrastructure calls EtwSetInformation API that is not available on Win7.
31 // Setting TLG_HAVE_EVENT_SET_INFORMATION, modifies the behavior of TraceLoggingProvider.h.
32 // The value 2 indicates that the trace logging infra would find "EtwSetInformation" via
33 // MmGetSystemRoutineAddress. This allows our code to be backwards compatible to Win7
34 //
35 #define TLG_HAVE_EVENT_SET_INFORMATION 2
36 // #include <traceloggingprovider.h>
37 // #include <telemetry\MicrosoftTelemetry.h>
38 
39 // WDF01000.sys
40 #define KMDF_FX_TRACE_LOGGING_PROVIDER_NAME    "Microsoft.Wdf.KMDF.Fx"
41 
42 // WUDFX0200.dll
43 #define UMDF_FX_TRACE_LOGGING_PROVIDER_NAME    "Microsoft.Wdf.UMDF.Fx"
44 
45 // WudfHost.exe
46 #define UMDF_HOST_TRACE_LOGGING_PROVIDER_NAME  "Microsoft.Wdf.UMDF.Host"
47 
48 // WdfLdr.sys
49 #define KMDF_LDR_TRACE_LOGGING_PROVIDER_NAME   "Microsoft.Wdf.KMDF.Ldr"
50 
51 // WudfSvc.dll
52 #define UMDF_DM_TRACE_LOGGING_PROVIDER_NAME    "Microsoft.Wdf.UMDF.Dm"
53 
54 // Common telemetry related keyword used across all telemetry events
55 #define WDF_TELEMETRY_EVT_KEYWORDS TraceLoggingKeyword(MICROSOFT_KEYWORD_TELEMETRY)
56