reactos/sdk/lib/drivers/wdf/shared/inc/private/common/fxtelemetrycommon.hpp
Victor Perevertkin 1f377076d7
[WDF] Fix KMDF so it can compile with ReactOS SDK
Not all files are included, but these are necessary to compile cdrom driver.
So far it can only be statically linked with drivers, a proper
implementation requires wdfldr helper driver
2020-11-03 00:06:27 +03:00

55 lines
1.3 KiB
C++

/*++
Copyright (c) Microsoft Corporation
Module Name:
FxTelemetryCommon.hpp
Abstract:
This is header file for telemetry methods common to all WDF components
Author:
Environment:
Both kernel and user mode
Revision History:
Notes:
--*/
#pragma once
//
// The TraceLogging infrastructure calls EtwSetInformation API that is not available on Win7.
// Setting TLG_HAVE_EVENT_SET_INFORMATION, modifies the behavior of TraceLoggingProvider.h.
// The value 2 indicates that the trace logging infra would find "EtwSetInformation" via
// MmGetSystemRoutineAddress. This allows our code to be backwards compatible to Win7
//
#define TLG_HAVE_EVENT_SET_INFORMATION 2
// #include <traceloggingprovider.h>
// #include <telemetry\MicrosoftTelemetry.h>
// WDF01000.sys
#define KMDF_FX_TRACE_LOGGING_PROVIDER_NAME "Microsoft.Wdf.KMDF.Fx"
// WUDFX0200.dll
#define UMDF_FX_TRACE_LOGGING_PROVIDER_NAME "Microsoft.Wdf.UMDF.Fx"
// WudfHost.exe
#define UMDF_HOST_TRACE_LOGGING_PROVIDER_NAME "Microsoft.Wdf.UMDF.Host"
// WdfLdr.sys
#define KMDF_LDR_TRACE_LOGGING_PROVIDER_NAME "Microsoft.Wdf.KMDF.Ldr"
// WudfSvc.dll
#define UMDF_DM_TRACE_LOGGING_PROVIDER_NAME "Microsoft.Wdf.UMDF.Dm"
// Common telemetry related keyword used across all telemetry events
#define WDF_TELEMETRY_EVT_KEYWORDS TraceLoggingKeyword(MICROSOFT_KEYWORD_TELEMETRY)