diff options
| author | Barry Golden <[email protected]> | 2019-09-25 19:35:57 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-25 19:35:57 -0700 |
| commit | d2a01860208bcce9f4777d54bec3c59c4c02e969 (patch) | |
| tree | be2892ff05b3308b559e18474f1b1645582cb379 /storage/tools | |
| parent | 2e237713e298495b141560a5e7c76d6b1efa0153 (diff) | |
Update README.md (#425)8758187580875798757887577875768757587574875738757287571875708756987568875678756687565875648756387562
Diffstat (limited to 'storage/tools')
| -rw-r--r-- | storage/tools/spti/README.md | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/storage/tools/spti/README.md b/storage/tools/spti/README.md index 9c4bd2c9..b0d08237 100644 --- a/storage/tools/spti/README.md +++ b/storage/tools/spti/README.md @@ -8,23 +8,12 @@ products: - windows-wdk --- - - -<!--- - name: SCSI Pass-Through Interface Tool - platform: Application - language: cpp - category: Storage - description: Demonstrates how to communicate with a SCSI device using pass-through IOCTLs in an application using DeviceIoControl API. - samplefwlink: http://go.microsoft.com/fwlink/p/?LinkId=617990 ----> - # SCSI Pass-Through Interface Tool The SCSI Pass Through Interface sample demonstrates how to communicate with a SCSI device from Microsoft Win32 applications by using the **DeviceIoControl** API. ## Installation and Operation -The storage port drivers provide an interface for Win32 applications to send SCSI CBDs (Command Descriptor Block) to SCSI devices. The interfaces are [**IOCTL\_SCSI\_PASS\_THROUGH**](http://msdn.microsoft.com/en-us/library/windows/hardware/ff560519) and [**IOCTL\_SCSI\_PASS\_THROUGH\_DIRECT**](http://msdn.microsoft.com/en-us/library/windows/hardware/ff560521). Applications can build a pass-through request and send it to the device by using this IOCTL. +The storage port drivers provide an interface for Win32 applications to send SCSI CBDs (Command Descriptor Block) to SCSI devices. The interfaces are [**IOCTL\_SCSI\_PASS\_THROUGH**](https://docs.microsoft.com/windows-hardware/drivers/ddi/content/ntddscsi/ni-ntddscsi-ioctl_scsi_pass_through) and [**IOCTL\_SCSI\_PASS\_THROUGH\_DIRECT**](https://docs.microsoft.com/windows-hardware/drivers/ddi/content/ntddscsi/ni-ntddscsi-ioctl_scsi_pass_through_direct). Applications can build a pass-through request and send it to the device by using this IOCTL. -Two command line parameters can be used with *SPTI.EXE*. The first parameter is mandatory. It is the name of the device to be opened. Typical values for this are drive letters such as "C:", or device names as defined by a class driver such as Scanner0, or the SCSI port driver name, ScsiN:, where N = 0, 1, 2, etc. The second parameter is optional and is used to set the share mode (note that access mode and share mode are different things) and sector size. The default share mode is (FILE\_SHARE\_READ | FILE\_SHARE\_WRITE) and the default sector size is 512. A parameter of "r" changes the share mode to only FILE\_SHARE\_READ. A parameter of "w" changes the share mode to only FILE\_SHARE\_WRITE. A parameter of "c" changes the share mode to only FILE\_SHARE\_READ and also changes the sector size to 2048. Typically, a CD-ROM device would use the "c" parameter.
\ No newline at end of file +Two command line parameters can be used with *SPTI.EXE*. The first parameter is mandatory. It is the name of the device to be opened. Typical values for this are drive letters such as "C:", or device names as defined by a class driver such as Scanner0, or the SCSI port driver name, ScsiN:, where N = 0, 1, 2, etc. The second parameter is optional and is used to set the share mode (note that access mode and share mode are different things) and sector size. The default share mode is (FILE\_SHARE\_READ | FILE\_SHARE\_WRITE) and the default sector size is 512. A parameter of "r" changes the share mode to only FILE\_SHARE\_READ. A parameter of "w" changes the share mode to only FILE\_SHARE\_WRITE. A parameter of "c" changes the share mode to only FILE\_SHARE\_READ and also changes the sector size to 2048. Typically, a CD-ROM device would use the "c" parameter. |
