[WDF] Add Windows Driver Framework files

Takern from Microsoft GitHub repo:
d9c6040fe9

Licensed under MIT
This commit is contained in:
Victor Perevertkin 2020-09-24 23:51:15 +03:00
parent 545df81502
commit 8a978a179f
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
475 changed files with 285099 additions and 0 deletions

View file

@ -0,0 +1,79 @@
/*++
Copyright (c) Microsoft Corporation
Module Name:
FxWmiCompat.hpp
Abstract:
Undefines WMI ntos exports used by WPP and redirects them to our own
functions so that we can build User and Kernel libraries.
Author:
Environment:
Both kernel and user mode
Revision History:
--*/
#ifndef __FX_WMI_COMPAT_H__
#define __FX_WMI_COMPAT_H__
#include <evntrace.h>
#ifdef WPP_TRACE
#undef WPP_TRACE
#endif
#define WPP_TRACE FxWmiTraceMessage
extern "C"
_Must_inspect_result_
NTSTATUS
FxWmiTraceMessage(
__in TRACEHANDLE LoggerHandle,
__in ULONG MessageFlags,
__in LPGUID MessageGuid,
__in USHORT MessageNumber,
...
);
#define WPP_IFR FxIFR
extern "C"
_Must_inspect_result_
NTSTATUS
FxIFR(
__in PFX_DRIVER_GLOBALS FxDriverGlobals,
__in UCHAR MessageLevel,
__in ULONG MessageFlags,
__in LPGUID MessageGuid,
__in USHORT MessageNumber,
...
);
#if ((FX_CORE_MODE)==(FX_CORE_USER_MODE))
#undef WmiQueryTraceInformation
#define WmiQueryTraceInformation FxWmiQueryTraceInformation
extern "C"
_Must_inspect_result_
NTSTATUS
FxWmiQueryTraceInformation(
__in TRACE_INFORMATION_CLASS TraceInformationClass,
__out_bcount(TraceInformationLength) PVOID TraceInformation,
__in ULONG TraceInformationLength,
__out_opt PULONG RequiredLength,
__in_opt PVOID Buffer
);
#endif
#endif __FX_WMI_COMPAT_H__