mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 10:14:44 +00:00
72 lines
1.2 KiB
C
72 lines
1.2 KiB
C
/*++
|
|
|
|
Copyright (c) Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
FxVerifierKm.cpp
|
|
|
|
Abstract:
|
|
|
|
Verifier code specific to KMDF
|
|
|
|
Environment:
|
|
|
|
kernel mode
|
|
|
|
Revision History:
|
|
|
|
|
|
|
|
--*/
|
|
|
|
#ifndef _FXVERIFIERKM_H_
|
|
#define _FXVERIFIERKM_H_
|
|
|
|
FORCEINLINE
|
|
VOID
|
|
FxVerifierCheckNxPoolType(
|
|
_In_ PFX_DRIVER_GLOBALS FxDriverGlobals,
|
|
_In_ POOL_TYPE PoolType,
|
|
_In_ ULONG PoolTag
|
|
)
|
|
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
This function performs the "no execute" pool type check for KMDF
|
|
client drivers.
|
|
|
|
N.B. It is important to keep this function inlined to make sure
|
|
_ReturnAddress() produces the correct calling function.
|
|
|
|
Arguments:
|
|
|
|
FxDriverGlobals - Supplies a pointer to the WDF driver object
|
|
globals.
|
|
|
|
PoolType - Supplies the pool type.
|
|
|
|
PoolTag - Supplies an optional pool tag.
|
|
|
|
Return Value:
|
|
|
|
None.
|
|
|
|
--*/
|
|
|
|
{
|
|
if (FxDriverGlobals->FxVerifierOn &&
|
|
FxLibraryGlobals.VfCheckNxPoolType != NULL) {
|
|
|
|
//
|
|
// Forward the call to Driver Verifier. This will provide a consistent
|
|
// behavior across all verified drivers.
|
|
//
|
|
|
|
FxLibraryGlobals.VfCheckNxPoolType(PoolType, _ReturnAddress(), PoolTag);
|
|
}
|
|
}
|
|
|
|
#endif // _FXVERIFIERKM_H_
|