Location:
Search - SPTI
Search list
Description: scsi pass through sample code
Platform: |
Size: 15360 |
Author: dprof |
Hits:
Description: Qt 4.7.2 + msvc2010 (msvc 版的 QT) 写的 Qt Gui 版 Spti, 即是 WinDDK里面一个 使用 DeviceIoControl 操作 SCSI 类型磁盘的例子,
本次编写此程序主要用于测试 usb 闪盘的 固件, 协助 usb 驱动 和 固件的程序开发.
同时也对在 Qt 中使用 win32 api 有一定的借鉴作用.-Qt 4.7.2+ msvc2010 (msvc version of QT) to write the Qt Gui version Spti, that is WinDDK DeviceIoControl operation inside a SCSI type of disk using the example of this preparation The procedure used to test the usb flash drive' s firmware, usb help drivers and firmware program development. but also in the use of Qt has some win32 api reference.
Platform: |
Size: 10240 |
Author: 黄展飞 |
Hits:
Description: spti code,send ioctl to driver.
Platform: |
Size: 31744 |
Author: amon |
Hits:
Description: ---
page_type: sample
description: "Demonstrates how to communicate with a SCSI device using pass-through IOCTLs in an application using DeviceIoControl API."
languages:
- cpp
products:
- windows
- windows-wdk
---
# 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**](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.
Platform: |
Size: 16254 |
Author: vitali_b@bk.ru |
Hits: