SRB_UNINITIALIZE_DEVICE

The class driver sends this request to signal the minidriver to disable itself.

Return Value

The minidriver should set one of the following as the status in the SRB:

STATUS_SUCCESS
Indicates successful completion of the command.

STATUS_NOT_IMPLEMENTED
Indicates that the function is not supported by the minidriver.

STATUS_ADAPTER_HARDWARE_ERROR
Indicates that the minidriver cannot uninitialize at this time.

Comments

The minidriver should deallocate any resources it allocated, and disable the device's interrupts. (The class driver automatically deallocates any resources it allocated on behalf of the minidriver.)