Hello
Assuming a functional device driver can determine that the hardware is broken - what is the correct way of reporting it to the OS?
Ideally, I would like to be able to report it in such a way that the device is removed from the system and that no future I/O-requests are forwarded to the driver.
Thanks in advance!
Regards
Johan
IoInvalidateDeviceState followed by responding with PNP_DEVICE_FAILED
to the subsequent IRP_MN_QUERY_PNP_DEVICE_STATE request. This should
result in an IRP_MN_SURPRISE_REMOVE showing up.
IO requests
On Dec 13, 2007 4:47 AM, wrote:
> Hello
>
> Assuming a functional device driver can determine that the hardware is broken - what is the correct way of reporting it to the OS?
>
> Ideally, I would like to be able to report it in such a way that the device is removed from the system and that no future I/O-requests are forwarded to the driver.
>
> Thanks in advance!
>
> Regards
> Johan
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
–
Mark Roddy
It worked perfectly, thanks a lot Mark!
-----Ursprungligt meddelande-----
Fr?n: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] F?r Mark Roddy
Skickat: den 14 december 2007 04:19
Till: Windows System Software Devs Interest List
?mne: Re: [ntdev] Correct way of reporting broken device
IoInvalidateDeviceState followed by responding with
PNP_DEVICE_FAILED to the subsequent
IRP_MN_QUERY_PNP_DEVICE_STATE request. This should result in
an IRP_MN_SURPRISE_REMOVE showing up.
IO requests
On Dec 13, 2007 4:47 AM, wrote:
> > Hello
> >
> > Assuming a functional device driver can determine that the
> hardware is broken - what is the correct way of reporting it
> to the OS?
> >
> > Ideally, I would like to be able to report it in such a way
> that the device is removed from the system and that no future
> I/O-requests are forwarded to the driver.
> >
> > Thanks in advance!
> >
> > Regards
> > Johan
> >
> > —
> > NTDEV is sponsored by OSR
> >
> > For our schedule of WDF, WDM, debugging and other seminars visit:
> > http://www.osr.com/seminars
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >
>
>
>
> –
> Mark Roddy
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online
> at http://www.osronline.com/page.cfm?name=ListServer
>