// storport.h
ULONG StorPortHardwareReset(
PVOID HwDeviceExtension,
STOR_DEVICE_RESET_TYPE Type
);
View the official Windows Driver Kit DDI referenceNo description available.
A storage miniport can call StorPortHardwareReset to issue a hardware reset.
HwDeviceExtensionPointer to the miniport's device extension.
TypeA STOR_DEVICE_RESET_TYPE enum that specifies the type of reset to be issued. Currently, Type must be set to StorFunctionLevelReset.
StorPortHardwareReset returns a status code such as the following:
| Return code | Description |
|---|---|
| STOR_STATUS_INVALID_PARAMETER | HwDeviceExtension is invalid. |
| STOR_STATUS_NOT_IMPLEMENTED | Type values other than StorFunctionLevelReset are not implemented. |
| STOR_STATUS_SUCCESS | The hardware reset completed successfully. |
| STOR_STATUS_UNSUCCESSFUL | The operation failed. |
See Resetting and recovering a device for more details.