- One is the WDF general object handle to the bus filter device object.
- The other is the PnP IRP itself.
Similar to a callback function registered with WdfDeviceInitAssignWdmIrpPreprocessCallback, the handler, before returning to BFF, must do one of the following actions:
- Complete the PnP IRP if appropriate.
- Optionally register an WDM IoCompletion routine and pass the PnP IRP down to the next lower driver.
If the latter is the case, the handler will end like:
NTSTATUS PnPMinorFunctionHandler(WDFOBJECT BffDevice, PIRP Irp) { ... ... ... return IoCallDriver(BffDeviceWdmGetAttachedDevice(BffDevice), Irp); }
No comments:
Post a Comment