SRB databuffer

Hi All,

Can anyone tell me what is the DataBuffer field will represent. I want to
know which is the field, that will have the Sense Code and Additional Sense
code information?

Regards


Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

Hi Ramesh,

For SCSI_REQUEST_BLOCKs of type SRB_FUNCTION_EXECUTE_SCSI, you can
typically find the sense data (which contains the below error info) in
the PVOID SenseInfoBuffer field. Note that this is a variable-length
field (see SenseInfoBufferLength field), and may be NULL, etc. As long
as you carefully check your access to fields(*), you can always use the
publicly defined _SENSE_DATA structure found in SCSI.H.

The DataBuffer field for EXECUTE_SCSI requests represents the data which
is transferred either to or from the device as part of the command, so
you probably don’t want to work with that field.

I realize MSDN doesn’t do a great job defining all the bits and pieces
in this area, but I think you’ll find it has significantly improved over
the past couple years (and we’ll still working on making it better).

Hth,
.

(*) To ensure the buffer is large enough. Easy way is to allocate a
SENSE_DATA structure on the stack (18 bytes), zero it, then copy the
buffer to it for review. Modifications copied back the same way. More
complex ways typically use the RTL_SIZEOF_THROUGH_FIELD() macro.

-----Original Message-----
From: Ramesh K [mailto:xxxxx@lycos.com]
Sent: Monday, December 27, 2004 3:13 AM
Subject: SRB databuffer

Hi All,

Can anyone tell me what is the DataBuffer field will represent. I want
to know which is the field, that will have the Sense Code and Additional
Sense code information?

Regards


Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default
.asp?SRC=lycos10