DrvResetDevice function (winddi.h)
The DrvResetDevice function resets a device that is inoperable or unresponsive.
ULONG DrvResetDevice( DHPDEV dhpdev, PVOID Reserved );
Handle to the physical device's PDEV that describes the physical device that has stopped. This is the value returned by DrvEnablePDEV.
Is reserved and must be set to NULL.
DrvResetDevice should return one of the following values:
||The device did not recover from the error.|
||The device is currently in working order.|
This function is available in Windows XP and later.
DrvResetDevice is usually called in response to EngHangNotification. A driver should take any steps necessary to restore the device to working order, and should do so with no data loss or as little as possible.
|Header||winddi.h (include Winddi.h)|