ReactOS 0.4.15-dev-7842-g558ab78
fxtelemetrycommon.hpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxTelemetryCommon.hpp
8
9Abstract:
10
11 This is header file for telemetry methods common to all WDF components
12
13Author:
14
15
16
17Environment:
18
19 Both kernel and user mode
20
21Revision History:
22
23Notes:
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)