Regarding a previous post: http://www.osronline.com/showThread.cfm?link=93188 on Sending IRP_MJ_PNP from a KMDF driver. I have reproduced this code but can’t figure out why I get no data in my output buffer. I basically copied the code. Filled in the remaining stack locations; WhichSpace, Buffer, Offset, and Length. I finish of with a call to WdfRequestCompleteWithInformation. None of the functions return errors. Is there any additional step(s) to get the data into the output buffer not mentioned in the previous post?
STATUS_INVALID_DEVICE_REQUEST is returned by WdfRequestGetStatus after WdfRequestSend returns TRUE. Anyone know what might cause this error?
You should also read http://blogs.msdn.com/doronh/archive/2006/08/16/703157.aspx. Please post your code, I think we will get to the bottom of it faster that way. If you are creating, formatting and sending your own request, then you should not be calling WdfRequestCompleteWithInformation on the request that you manually created.
What bus enumerated your device? Reading your config is only supported on PCI PDO based stack (and not necessarily any of its descendants)
d
Looks like it was a matter of my output buffer size being too large. What is the correct value(or range of values) that I can use? I have had issues with this in the past between Windows 2000 and XP. Is it truly a byte value? It is also the same value used on our wdm driver but does not work.