You need to look at the m__UCHAR__Sense[...] member of the structure. It contains SCSI sense information. Complete info (17+ bytes) describing WHY the command failed. See, it's too large and complex to wrap it into the single status code... We'll be adding some sort of the macro of function extacting interesting bytes (f.e. Sense Code and Additional Sense Code Qualifier -- most signigican bytes you should be interested in). So
//
// SCSI sense positions
//
#define SCSI_SENSE_KEY_POSITION 2
#define SCSI_ASC_POSITION 12
#define SCSI_ASCQ_POSITION 13
are inside the m__UCHAR__Sense[...] array. If you'll drop me an e-mail I'll send you complete ASC/ASCQ meaning interpretation.
Thank you!
bbriggstkd wrote:
I ran the TestUnitReady function without a disk in my drive thinking that would force an error. It returned a exception of 8 which means a CDB error correct? How do I look at the CDB Error structure to know what happened. I have those arrays of bytes but that doesn't mean anything to me. What am I looking for?