2020-09-24 20:41:01 +00:00
|
|
|
/*++
|
|
|
|
|
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
|
|
|
_WdfVersionBuild_
|
|
|
|
|
|
|
|
Module Name:
|
|
|
|
|
|
|
|
wdfverifier.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
This module contains Driver Frameworks Verifier definitions
|
|
|
|
|
|
|
|
Environment:
|
|
|
|
|
|
|
|
kernel mode only
|
|
|
|
|
|
|
|
Revision History:
|
|
|
|
|
|
|
|
|
|
|
|
--*/
|
|
|
|
|
|
|
|
//
|
|
|
|
// NOTE: This header is generated by stubwork. Please make any
|
|
|
|
// modifications to the corresponding template files
|
|
|
|
// (.x or .y) and use stubwork to regenerate the header
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef _WDFVERIFIER_H_
|
|
|
|
#define _WDFVERIFIER_H_
|
|
|
|
|
|
|
|
#ifndef WDF_EXTERN_C
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#define WDF_EXTERN_C extern "C"
|
|
|
|
#define WDF_EXTERN_C_START extern "C" {
|
|
|
|
#define WDF_EXTERN_C_END }
|
|
|
|
#else
|
|
|
|
#define WDF_EXTERN_C
|
|
|
|
#define WDF_EXTERN_C_START
|
|
|
|
#define WDF_EXTERN_C_END
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
WDF_EXTERN_C_START
|
|
|
|
|
2020-09-24 20:48:32 +00:00
|
|
|
#ifndef STDCALL // __REACTOS__
|
|
|
|
#define STDCALL __stdcall
|
|
|
|
#endif
|
2020-09-24 20:41:01 +00:00
|
|
|
|
|
|
|
#if (NTDDI_VERSION >= NTDDI_WIN2K)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// WDF Function: WdfVerifierDbgBreakPoint
|
|
|
|
//
|
|
|
|
typedef
|
|
|
|
WDFAPI
|
|
|
|
VOID
|
2020-09-24 20:48:32 +00:00
|
|
|
(STDCALL *PFN_WDFVERIFIERDBGBREAKPOINT)(
|
2020-09-24 20:41:01 +00:00
|
|
|
_In_
|
|
|
|
PWDF_DRIVER_GLOBALS DriverGlobals
|
|
|
|
);
|
|
|
|
|
|
|
|
FORCEINLINE
|
2020-09-24 20:48:32 +00:00
|
|
|
VOID
|
2020-09-24 20:41:01 +00:00
|
|
|
WdfVerifierDbgBreakPoint(
|
|
|
|
)
|
|
|
|
{
|
|
|
|
((PFN_WDFVERIFIERDBGBREAKPOINT) WdfFunctions[WdfVerifierDbgBreakPointTableIndex])(WdfDriverGlobals);
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// WDF Function: WdfVerifierKeBugCheck
|
|
|
|
//
|
|
|
|
typedef
|
|
|
|
WDFAPI
|
|
|
|
VOID
|
2020-09-24 20:48:32 +00:00
|
|
|
(STDCALL *PFN_WDFVERIFIERKEBUGCHECK)(
|
2020-09-24 20:41:01 +00:00
|
|
|
_In_
|
|
|
|
PWDF_DRIVER_GLOBALS DriverGlobals,
|
|
|
|
_In_
|
|
|
|
ULONG BugCheckCode,
|
|
|
|
_In_
|
|
|
|
ULONG_PTR BugCheckParameter1,
|
|
|
|
_In_
|
|
|
|
ULONG_PTR BugCheckParameter2,
|
|
|
|
_In_
|
|
|
|
ULONG_PTR BugCheckParameter3,
|
|
|
|
_In_
|
|
|
|
ULONG_PTR BugCheckParameter4
|
|
|
|
);
|
|
|
|
|
|
|
|
FORCEINLINE
|
2020-09-24 20:48:32 +00:00
|
|
|
VOID
|
2020-09-24 20:41:01 +00:00
|
|
|
WdfVerifierKeBugCheck(
|
|
|
|
_In_
|
|
|
|
ULONG BugCheckCode,
|
|
|
|
_In_
|
|
|
|
ULONG_PTR BugCheckParameter1,
|
|
|
|
_In_
|
|
|
|
ULONG_PTR BugCheckParameter2,
|
|
|
|
_In_
|
|
|
|
ULONG_PTR BugCheckParameter3,
|
|
|
|
_In_
|
|
|
|
ULONG_PTR BugCheckParameter4
|
|
|
|
)
|
|
|
|
{
|
|
|
|
((PFN_WDFVERIFIERKEBUGCHECK) WdfFunctions[WdfVerifierKeBugCheckTableIndex])(WdfDriverGlobals, BugCheckCode, BugCheckParameter1, BugCheckParameter2, BugCheckParameter3, BugCheckParameter4);
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// WDF Function: WdfGetTriageInfo
|
|
|
|
//
|
|
|
|
typedef
|
|
|
|
WDFAPI
|
|
|
|
PVOID
|
2020-09-24 20:48:32 +00:00
|
|
|
(STDCALL *PFN_WDFGETTRIAGEINFO)(
|
2020-09-24 20:41:01 +00:00
|
|
|
_In_
|
|
|
|
PWDF_DRIVER_GLOBALS DriverGlobals
|
|
|
|
);
|
|
|
|
|
|
|
|
FORCEINLINE
|
2020-09-24 20:48:32 +00:00
|
|
|
PVOID
|
2020-09-24 20:41:01 +00:00
|
|
|
WdfGetTriageInfo(
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return ((PFN_WDFGETTRIAGEINFO) WdfFunctions[WdfGetTriageInfoTableIndex])(WdfDriverGlobals);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // (NTDDI_VERSION >= NTDDI_WIN2K)
|
|
|
|
|
|
|
|
|
|
|
|
WDF_EXTERN_C_END
|
|
|
|
|
|
|
|
#endif // _WDFVERIFIER_H_
|
|
|
|
|