Microsoft KB Archive/251369

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 04:17, 20 July 2020 by X010 (talk | contribs) (Text replacement - ".htm|" to "|")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

INFO: SCSI Pass Through Functionality and Limitations

Q251369



The information in this article applies to:


  • Microsoft Windows NT 4.0 Driver Development Kit (DDK)
  • Microsoft Windows 2000 Driver Development Kit (DDK)





SUMMARY

On Windows NT and Windows 2000, the interface used in an application to send SCSI commands to a SCSI device is called SCSI Pass Through (SPT). A Win32 program uses DeviceIoControl with the IoControlCode of IOCTL_SCSI_PASS_THROUGH or IOCTL_SCSI_PASS_THROUGH_DIRECT. This article explains some of the functionality and limitations of the SCSI Pass Through interface.



MORE INFORMATION

Synchronous Requests

The SPT requests are always synchronous. Even if the caller has specified overlapped I/O (FILE_FLAG_OVERLAPPED) and passed the overlapped structure to the DeviceIoControl call, the ScsiPort driver will block the SPT request until the SCSI device completes it.

When completed by the SCSI device (success or error), ScsiPort will complete the SPT request and the calling thread will be unblocked.

Untagged Queuing

A SCSI command can be send to the SCSI device as either untagged or tagged. Untagged queuing permits a device to accept commands from an initiator while executing commands from another. Tagged queuing gives the device the ability to accept a series of commands from the same or different initiators. The SPT always uses untagged queuing while sending commands to the device.




REFERENCES

The SPT interface is documented in the Windows NT/Windows 2000 DDK documentation.

For additional information on the SPT interface, click the article numbers below to view the articles in the Microsoft Knowledge Base:

Q137247 IOCTL_SCSI_MINIPORT and IOCTL_SCSI_PASS_THROUGH Limitations

Q241374 INFO: Read and Write Access Required for SCSI Pass Through Request

Sample:

There is sample program (SPTI) available in the DDK that demonstrates the SPT interface. It can be found in the \Ddk\Src\Storage\Class\Spti folder.

Additional query words: spti IOCTL_SCSI_PASS_THROUGH IOCTL_SCSI_PASS_THROUGH_DIRECT

Keywords : kbDDK kbOSWinNT400 kbOSWin2000 kbStorageDev kbDSupport kbGrpDSNTDDK
Issue type : kbinfo
Technology : kbWinNTsearch kbWinNT400xsearch kbwin2000Search kbwin2000DDK kbAudDeveloper kbWinDDKSearch kbWinNT400DDK


Last Reviewed: February 7, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.