SCSISCAN_CMD structure (scsiscan.h)
The SCSISCAN_CMD structure is used as a parameter to DeviceIoControl, when the specified I/O control code is IOCTL_SCSISCAN_CMD.
Syntax
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;
Members
Reserved1
Reserved. Do not use.
Size
Caller-supplied size, in bytes, of the SCSISCAN_CMD structure.
SrbFlags
Caller-supplied SRB_FLAGS-prefixed bit flag specifying the requested operation. Flags are defined in srb.h.
CdbLength
Length, in bytes, of the CDB contained in the Cdb member.
SenseLength
Length, in bytes, of the sense buffer the pSenseBuffer member points to.
Reserved2
Reserved. Do not use.
Reserved3
Reserved. Do not use.
TransferLength
Length, in bytes, of the buffer to be transferred. This should match the value specified for the DeviceIoControl function's nOutBufferSize parameter.
Cdb[16]
Caller-supplied CDB data. (The CDB structure is declared in scsi.h.)
pSrbStatus
Caller-supplied pointer that will receive one of the SRB_STATUS-prefixed status values defined in srb.h.
pSenseBuffer
Caller-supplied pointer to a request-sense buffer, to be filled in by the kernel-mode driver.
Requirements
Requirement | Value |
---|---|
Header | scsiscan.h (include Scsiscan.h, Srb.h, Scsi.h) |