I have an NDIS driver that I have written that also has an intermediate(?) level driver that functions like the "packet" driver in the DDK.
I now need to send on IOCTL from this driver to the NDIS driver (to perform a control function). I have tried just calling IoBuildDeviceIoControlRequest and then calling IoCall Driver. I get a blue screen after the IoCall Driver.
The error points to a reference to address 0x10 at IRQL 2.
I am assuming that there is something else that I must do when setting up the IRP.
Can anyone point me in the right direction ?
I am unclear about the handling of stack locations in an IRP - is there something there that I should be doing.
BTW I am expecting the NDIS driver to handle this IOCTL as an "OID", is that correct.