Re: KMDF handling of internal IOCTLs



On Jun 20, 7:36 am, Wilhelm Noeker <wnoe...@xxxxxxxxxxx> wrote:

I'm having trouble with my very first KMDF driver. Starting from the
KMDF Toaster bus sample, I've tried to add a handler for
IRP_MJ_INTERNAL_DEVICE_CONTROL.

Are you trying to receive internal IOCTLs at your bus FDO, or the PDO
of one of your children? I suspect it's the latter case, and you're
trying to attach the queue to your bus FDO.

If this is what you're doing, after you call WdfDeviceCreate() for
your child and get a WDFDEVICE back......attach the queue to that guy,
not your bus FDO WDFDEVICE.
.



Relevant Pages