WdfDeviceWdmDispatchPreprocessedIrp - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfdevice.h

NTSTATUS WdfDeviceWdmDispatchPreprocessedIrp(
  [in] WDFDEVICE Device,
  [in] PIRP      Irp
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdevice-wdfdevicewdmdispatchpreprocessedirp)

WdfDeviceWdmDispatchPreprocessedIrp function

Description

[Applies to KMDF only]

The WdfDeviceWdmDispatchPreprocessedIrp method returns a preprocessed IRP to the framework.

Parameters

Device [in]

A handle to a framework device object.

Irp [in]

A pointer to an IRP structure.

Return value

WdfDeviceWdmDispatchPreprocessedIrp returns an NTSTATUS value that the framework or the driver provides as the result of processing the IRP. The driver must use this return value as the return value for the EvtDeviceWdmIrpPreprocess callback function.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

A framework-based driver that preprocesses or postprocesses WDM IRPs must call WdfDeviceWdmDispatchPreprocessedIrp, typically from within the driver's EvtDeviceWdmIrpPreprocess callback function. For more information about how to call WdfDeviceWdmDispatchPreprocessedIrp, see Preprocessing and Postprocessing IRPs.

Examples

For a code example that uses WdfDeviceWdmDispatchPreprocessedIrp, see Preprocessing and Postprocessing IRPs.