This may seem like a simple question some people here, but I’ve been scouring the net for answers regarding what needs to be done inside EvtDeviceD0Exit (EVT_WDF_DEVICE_D0_EXIT) but was unable to found what I’m looking for. In the current version we just return a status of STATUS_SUCCESS.
For the most part the driver (USB) is alright the issue is when we try to eject the device on the windows system tray, the device is not removed in Device Manager (it has a yellow exclamation warning). According to what I’ve read so far this may have something to do with what’s inside EvtDeviceD0Exit. Any help/pointing out of direction will be appreciated.
xxxxx@gmail.com wrote:
This may seem like a simple question some people here, but I’ve been scouring the net for answers regarding what needs to be done inside EvtDeviceD0Exit (EVT_WDF_DEVICE_D0_EXIT) but was unable to found what I’m looking for. In the current version we just return a status of STATUS_SUCCESS.
For the most part the driver (USB) is alright the issue is when we try to eject the device on the windows system tray, the device is not removed in Device Manager (it has a yellow exclamation warning). According to what I’ve read so far this may have something to do with what’s inside EvtDeviceD0Exit. Any help/pointing out of direction will be appreciated.
It’s entirely dependent on your device. If your hardware doesn’t need
to have any action taken or any state saved just before power is removed
(and many don’t), then you don’t need to handle D0Exit at all. And if
you are returning STATUS_SUCCESS, then it can’t be causing the yellow bang.
Do you have any outstanding requests, either requests from above or
requests you have sent down below?
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Thanks for the reply Tim. We’re looking on it, so far there seems to be no outstanding requests.