// scsiscan.h
typedef struct _SCSISCAN_CMD {
ULONG Reserved1;
ULONG Size;
ULONG SrbFlags;
UCHAR CdbLength;
UCHAR SenseLength;
UCHAR Reserved2;
UCHAR Reserved3;
ULONG TransferLength;
UCHAR Cdb[16];
PUCHAR pSrbStatus;
PUCHAR pSenseBuffer;
} SCSISCAN_CMD, *PSCSISCAN_CMD;
View the official Windows Driver Kit DDI referenceNo description available.
The SCSISCAN_CMD structure is used as a parameter to DeviceIoControl, when the specified I/O control code is IOCTL_SCSISCAN_CMD.
Reserved1Reserved. Do not use.
SizeCaller-supplied size, in bytes, of the SCSISCAN_CMD structure.
SrbFlagsCaller-supplied SRB_FLAGS-prefixed bit flag specifying the requested operation. Flags are defined in srb.h.
CdbLengthLength, in bytes, of the CDB contained in the Cdb member.
SenseLengthLength, in bytes, of the sense buffer the pSenseBuffer member points to.
Reserved2Reserved. Do not use.
Reserved3Reserved. Do not use.
TransferLengthLength, in bytes, of the buffer to be transferred. This should match the value specified for the DeviceIoControl function's nOutBufferSize parameter.
CdbCaller-supplied CDB data. (The CDB structure is declared in scsi.h.)
pSrbStatusCaller-supplied pointer that will receive one of the SRB_STATUS-prefixed status values defined in srb.h.
pSenseBufferCaller-supplied pointer to a request-sense buffer, to be filled in by the kernel-mode driver.