CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Win32
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Win32 - List
[
Windows Kernel
]
win32/induc.a病毒清理源码
DL : 0
win32/induc.a 病毒清理工具
Date
: 2009-08-27
Size
: 13.29kb
User
:
egomoo@gmail.com
[
Windows Kernel
]
提取系统时间
DL : 1
本程序是一个提取系统时间的win32应用程序,通过学习本程序可以了解windows的运行机制。了解CTime类等等。windows的窗口创建过程。
Date
: 2009-04-30
Size
: 1.51mb
User
:
cq_3964
[
Windows Kernel
]
SharedMemory.rar
DL : 0
RTX环境下,win32和RTSS的共享内存实现方法
Date
: 2013-06-14
Size
: 193.62kb
User
:
kidletsh
[
Windows Kernel
]
SCSI_Pass_Through_Interface_Tool
DL : 0
--- 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.
Date
: 2024-07-15
Size
: 15.87kb
User
:
vitali_b@bk.ru
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.