| Previous | Next |
| ERROR_NOT_READY | ERROR_CRC |
ERROR_BAD_COMMAND
The device rejected the requested command
ERROR_BAD_COMMAND indicates that the operation reached a device or driver but the command itself is unsupported or malformed for that target. This may occur with legacy storage commands, control codes, firmware operations, or wrappers that send a request intended for another device class.
Investigation
- Record the API, control code, command bytes, and device type.
- Check the driver's documented command set and required input structure.
- Verify structure size, packing, version fields, and reserved values.
- Confirm that the handle was opened for the intended class of device.
Resolution
Use a supported command or select a compatible device path. A retry without changing the request will normally fail again. When compatibility varies by hardware revision, query capabilities first and keep a fallback path rather than treating all devices as identical.
References
Looking for a different code? Search another status or error code.