galapogos
November 21st, 2007, 10:56 PM
Hi,
I have a problem with DeviceIoControl() returning false despite the operation being successful behaviorally. GetLastError returns ERROR_INVALID_FUNCTION
The IOCTL function I'm using is IOCTL_SCSI_PASS_THROUGH, and I have included <ntddscsi.h> which contains the definition, defined below
#define IOCTL_SCSI_PASS_THROUGH CTL_CODE(IOCTL_SCSI_BASE, 0x0401, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
Does anyone know what's wrong?
Thanks!
I have a problem with DeviceIoControl() returning false despite the operation being successful behaviorally. GetLastError returns ERROR_INVALID_FUNCTION
The IOCTL function I'm using is IOCTL_SCSI_PASS_THROUGH, and I have included <ntddscsi.h> which contains the definition, defined below
#define IOCTL_SCSI_PASS_THROUGH CTL_CODE(IOCTL_SCSI_BASE, 0x0401, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
Does anyone know what's wrong?
Thanks!