How should I fire Abort and Reset SCSI commands?



Hi,

My platform is Win 2000. I need to send Reset and Abort SCSI commands
to a RAID device. How can I do so using the DeviceIoControl() API?

More specifically, what are the specific values for the various
parameters I need to use when calling this API?

BOOL DeviceIoControl(
HANDLE hDevice,
DWORD dwIoControlCode,
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
LPDWORD lpBytesReturned,
LPOVERLAPPED lpOverlapped
);

I have the handle to the device, and I know IOCTL_SCSI_MINIPORT is the
control code to be used. What should I store in "lpInBuffer", etc? Is
all this info specific to my device or is there a standard way to
execute Abort, Reset and other SCSI Task Management functions?

Also, if anyone has any sample code for this, I would be grateful if
you could share it with me.

There's hardly any info on the net regarding all this.

Thanks,
Shankar

.



Relevant Pages

  • Re: Java with Bluetooth
    ... When you reset the serial you thereby kill all connections including ... The poor little API doesn't know so you go to IO timeouts ... > it get's the command from a bluetooth mobile. ...
    (comp.lang.java.programmer)
  • Re: Java with Bluetooth
    ... I don't reset the Serial, I just send a reset to the bluetooth ... the connection work. ... >>Api working on my windows platform. ...
    (comp.lang.java.programmer)
  • Re: Close #FNbr
    ... The error message says that the file is in use by another application ... Reset closes all other open files and I do not want to do this. ... But Rest do finally close it and allows the file size routine and any ... If you say use API Read and Write, then I have to say, I have a ...
    (microsoft.public.vb.general.discussion)
  • Re: Is there any way to force setpassword API call to be validated by Windows passwo
    ... can't do a quick reset without having to worry about histories, ... write a password filter for the DCs that enforces these rules or you can use ... the changepassword api or you can enforce the checks in your code. ... > This self-service password uses "set password" API (not ...
    (microsoft.public.win2000.active_directory)