Is there any way to intercept every IRP in KMDF

I am writing a KMDF driver that must intercept every IRP before it moves to ioQueue.

I have a callback function registered by PreprocessIrpCallback and you want to associate it with a framework like this

status = WdfDeviceInitAssignWdmIrpPreprocessCallback(DeviceInit
    , PreprocessIrpCallback
    , ?
    , ?);

But what is included in the question marks if I want to intercept every IRP?

+5
source share

All Articles