I’m writing a HID minidriver, where I need to access Irp->UserBuffer in servicing the internal IOCTL_HID_GET_FEATURE. In addition I need to block before I can complete this request.
If I could get an assurance that I will always get called at PASSIVE_LEVEL, I’d block and that would be it. But I’m told I cannot make the assumption about IRQL.
Then, I’d have to capture the input buffer, wait for the h/w event in my work item, but then I’m out of luck accessing the output buffer in the original user thread.
Appriciate any thoughts on this.
massoud