Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108/*++
Copyright (c) Microsoft Corporation
Module Name:
FxVerifierBugcheck.cpp
Abstract:
This file contains definitions of verifier bugcheck functions These definitions are split from tracing.cpp in kmdf\src\core
Author:
Environment:
Both kernel and user mode
Revision History:
--*/
#include "fxobjectpch.hpp"
// We use DoTraceMessageextern "C" {#if defined(EVENT_TRACING)#include "FxVerifierBugcheck.tmh"#endif}
//=============================================================================////=============================================================================
DECLSPEC_NORETURNVOIDFxVerifierBugCheckWorker( __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in WDF_BUGCHECK_CODES WdfBugCheckCode, __in_opt ULONG_PTR BugCheckParameter2, __in_opt ULONG_PTR BugCheckParameter3 )/*++
Routine Description: Wrapper for system BugCheck.
Note this functions is marked "__declspec(noreturn)"
Arguments:
Returns:
--*/{ // // Indicate to the BugCheck callback filter which IFR to dump. // FxDriverGlobals->FxForceLogsInMiniDump = TRUE;
Mx::MxBugCheckEx(WDF_VIOLATION, WdfBugCheckCode, BugCheckParameter2, BugCheckParameter3, (ULONG_PTR) FxDriverGlobals );}
DECLSPEC_NORETURNVOIDFxVerifierNullBugCheck( __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PVOID ReturnAddress )/*++
Routine Description:
Calls KeBugCheckEx indicating a WDF DDI was passed a NULL parameter.
Note this functions is marked "__declspec(noreturn)"
Arguments:
Returns:
--*/{
DoTraceLevelMessage( FxDriverGlobals, TRACE_LEVEL_FATAL, TRACINGERROR, "NULL Required Parameter Passed to a DDI\n" "FxDriverGlobals 0x%p", FxDriverGlobals );
FxVerifierBugCheck(FxDriverGlobals, WDF_REQUIRED_PARAMETER_IS_NULL, // Bugcheck code. 0, // Parameter 2 (ULONG_PTR)ReturnAddress // Parameter 3 );}