Click to See Complete Forum and Search --> : DeviceIoControl() returning false despite successful operation


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!

Marc G
November 22nd, 2007, 04:56 AM
[ moved thread ]

galapogos
November 27th, 2007, 01:42 AM
Anyone?