青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

兩個控制碼,Windows下發送ATAPI Command必須用到的

雖然文檔說只有Server 2003才有,但在XP SP2下也可以發送,只是支持可能不是那么完全,某些硬件配置下可能不起作用。

 


Storage Devices: Windows Driver Kit

IOCTL_ATA_PASS_THROUGH

Operation

Allows an application to send almost any ATA command to a target device, with the following restrictions:

  • If a class driver for the target type of device exists, the application must send the request to the class driver. Thus, an application can send this request directly to the system port driver for a target logical unit (LU) only if there is no class driver for the type of device connected to that LU. The system port driver does not check to determine if a device has been claimed by a class driver before processing a pass-through request. Therefore, if an application bypasses a class driver that has claimed a device and sends a pass-through request for that device directly to the port driver, a conflict for control of the device can occur between the class driver and the application.
  • This request cannot be used if the command requires the underlying driver to access memory directly. If the caller's command might require direct access to memory, use IOCTL_ATA_PASS_THROUGH_DIRECT instead.
  • Applications must not attempt to send a pass-through request asynchronously. All pass-through requests must be synchronous.
  • Applications do not require administrative privileges to send a pass-through request to a device, but they must have read-write access to the device.

The calling application provides the ATA task file register contents for the intended command in the ATA_PASS_THROUGH_EX structure. The system double buffers all data transfers. This request is typically used for transferring small amounts of data (less than 16 KB).

Input

Parameters.DeviceIoControl.InputBufferLength indicates the size in bytes of the buffer at Irp->AssociatedIrp.SystemBuffer. If the embedded ATA command is a write operation, the size of the input buffer should be the sum of sizeof(ATA_PASS_THROUGH_EX) and the value in the DataTransferLength member of ATA_PASS_THROUGH_EX. The following pseudocode example shows how to calculate the buffer size:

ULONG buffsize; // size of the buffer
ATA_PASS_THROUGH_EX hdr;
hdr.DataTransferLength = size in bytes of the data transfer
buffsize = sizeof (ATA_PASS_THROUGH_EX) + hdr.DataTransferLength

If the embedded ATA command is a read operation or a device control operation that does not involve data transfer, InputBufferLength should be equal to sizeof (ATA_PASS_THROUGH_EX).

In either case, if InputBufferLength is less than sizeof (ATA_PASS_THROUGH_EX), the port driver fails the I/O request and returns an error.

The buffer at Irp->AssociatedIrp.SystemBuffer should contain an ATA_PASS_THROUGH_EX structure, which includes a set of task file input registers that indicate the sort of command to be performed and its parameters. The caller must initialize all the members of this structure except for PathId, TargetId, and Lun, which the port driver fills in. For a data-out command, the DataBufferOffset member of the structure must point to a cache-aligned buffer containing the data to be written.

Output

The port driver formats the return data using an ATA_PASS_THROUGH_EX structure and stores the data in the buffer at Irp->AssociatedIrp.SystemBuffer.

The port driver updates the DataTransferLength member of ATA_PASS_THROUGH_EX to indicate the amount of data actually transferred from the device. If the embedded ATA command is a write operation or a device control operation that does not transfer data, OutputBufferLength is equal to sizeof(ATA_PASS_THROUGH_EX). If the embedded ATA command is a read operation, OutputBufferLength is equal to sizeof(ATA_PASS_THROUGH_EX) + DataTransferLength.

The port driver fills the CurrentTaskFile member with the values that are present in the device's output registers at the completion of the embedded ATA command. If the command was a data transfer, the port driver stores the transferred data in a cache-aligned buffer that is located at an offset of DataBufferOffset bytes from the beginning of the structure. The application is responsible for interpreting the contents of the output registers to determine what errors, if any, were returned by the device.

I/O Status Block

The Information member is set to the number of bytes returned in the output buffer at Irp->AssociatedIrp.SystemBuffer. The Status member is set to STATUS_SUCCESS or possibly to STATUS_BUFFER_TOO_SMALL or STATUS_INVALID_PARAMETER if the input Length value in ATA_PASS_THROUGH is improperly set.

Requirements

Versions: Available in Microsoft Windows Server 2003 and later operating systems.

Headers: Defined in ntddscsi.h. Include ntddscsi.h.

? 2007 Microsoft Corporation
Send feedback on this topic
Windows Driver Kit
Built on August 15, 2007

Build machine: CAPEBUILD

Requirements

Versions: Available in Microsoft Windows Server 2003 and later operating systems.

Headers: Defined in ntddscsi.h. Include ntddscsi.h.

 


Storage Devices: Windows Driver Kit

IOCTL_ATA_PASS_THROUGH_DIRECT

Operation

Allows an application to send almost any ATA command to a target device, with the following restrictions:

  • If a class driver for the target type of device exists, the application must send the request to the class driver. Thus, an application can send this request directly to the system port driver for a target logical unit only if there is no class driver for the device.
  • The application must use this request rather than IOCTL_ATA_PASS_THROUGH if the embedded ATA command might require the underlying miniport driver to access memory directly.

If the ATA command requests a data transfer operation, the caller must set up a cache-aligned buffer from which, or into which, the driver can transfer data directly. The IOCTL_ATA_PASS_THROUGH_DIRECT request is typically used for transferring large amounts of data (more than 16 KB).

Input

Parameters.DeviceIoControl.InputBufferLength indicates the size in bytes of the buffer at Irp->AssociatedIrp.SystemBuffer. The value of InputBufferLength is fixed and does not depend on the amount of data transferred. It is equal to sizeof (ATA_PASS_THROUGH_DIRECT). If the size of the buffer is less than sizeof(ATA_PASS_THROUGH_DIRECT), the port driver fails the I/O request and returns an error.

The buffer at Irp->AssociatedIrp.SystemBuffer contains an ATA_PASS_THROUGH_DIRECT structure that includes a set of task file input registers that indicate the sort of command to be performed. The caller must initialize all the members of this structure except for PathId, TargetId, and Lun, which the port driver fills in. For a data-out command, the DataBuffer member of ATA_PASS_THROUGH_DIRECT must point to a cache-aligned buffer containing the data to be written.

Output

The port driver formats the return data using an ATA_PASS_THROUGH_DIRECT structure that it stores in the buffer at Irp->AssociatedIrp.SystemBuffer. The port driver updates the DataTransferLength member of the ATA_PASS_THROUGH_DIRECT structure to indicate the amount of data that was transferred from the device.

The port driver stores the transferred data in the cache-aligned buffer pointed to by the DataBuffer member of ATA_PASS_THROUGH_DIRECT.

The port driver fills the CurrentTaskFile member of ATA_PASS_THROUGH_DIRECT with the values present in the device's output registers at the completion of the ATA command. The application is responsible for interpreting the contents of the output registers to determine what errors, if any, were returned by the device.

I/O Status Block

The Information member is set to the number of bytes returned in the output buffer at Irp->AssociatedIrp.SystemBuffer. The Status member is set to STATUS_SUCCESS or possibly to STATUS_BUFFER_TOO_SMALL or STATUS_INVALID_PARAMETER if the input Length value in ATA_PASS_THROUGH is improperly set.

Requirements

Headers: Defined in ntddscsi.h. Include ntddscsi.h.

? 2007 Microsoft Corporation
Send feedback on this topic
Windows Driver Kit
Built on August 15, 2007

Build machine: CAPEBUILD

Requirements

Headers: Defined in ntddscsi.h. Include ntddscsi.h.

posted on 2008-07-01 14:12 FongLuo 閱讀(2801) 評論(0)  編輯 收藏 引用

<2017年1月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
2930311234

導航

常用鏈接

留言簿

隨筆分類(11)

隨筆檔案(79)

文章檔案(1)

收藏夾(38)

學習網站

一般網站

最新隨筆

搜索

積分與排名

最新評論

閱讀排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            国产一区二区三区久久 | 亚洲黑丝在线| 国产精品高清一区二区三区| 欧美黄色一区| 欧美日本在线| 国产精品家教| 国产欧美一区二区白浆黑人| 国产欧美精品一区二区色综合| 欧美日韩免费精品| 亚洲国产你懂的| 久久综合久久综合这里只有精品| 欧美在线播放一区二区| 欧美一区二区三区精品| 久久成人精品视频| 美国成人直播| 亚洲精品国久久99热| 一个色综合导航| 午夜在线电影亚洲一区| 久久九九99视频| 欧美激情无毛| 国产精品chinese| 国产一区二区三区av电影 | 午夜精品久久久久久久蜜桃app| 欧美一区在线视频| 久久这里只精品最新地址| 免费影视亚洲| 在线一区二区三区四区五区| 久久国产精品久久久久久| 欧美高清你懂得| 国产日韩欧美二区| 一区二区三区欧美成人| 久久久人人人| 正在播放欧美一区| 欧美成人午夜剧场免费观看| 国产欧美韩国高清| 日韩午夜在线| 久久女同互慰一区二区三区| 亚洲人久久久| 久久久久国产成人精品亚洲午夜| 欧美激情女人20p| 国产亚洲一区二区三区在线播放| 99精品欧美一区二区三区综合在线 | 亚洲一区二区三区777| 久久人人看视频| 一区二区三区欧美成人| 欧美高清视频www夜色资源网| 国产日韩亚洲欧美综合| 宅男噜噜噜66国产日韩在线观看| 美女久久一区| 欧美一区2区视频在线观看| 欧美日韩黄视频| 亚洲黄色在线| 美女亚洲精品| 久久成人这里只有精品| 国产欧美精品日韩区二区麻豆天美| 99在线精品视频| 欧美激情在线播放| 麻豆久久婷婷| 亚洲成人自拍视频| 久久九九精品99国产精品| 久久国产直播| 性色av一区二区三区红粉影视| 欧美日产一区二区三区在线观看| 在线精品一区| 免费看的黄色欧美网站| 久久精品国产一区二区电影| 国产亚洲一区二区三区在线观看| 亚洲一区三区视频在线观看| 日韩亚洲欧美中文三级| 欧美日韩免费在线视频| 宅男在线国产精品| 亚洲手机在线| 国产视频在线观看一区二区三区| 欧美在线观看视频一区二区三区| 亚洲综合欧美日韩| 国产日韩精品在线| 久久嫩草精品久久久精品| 久久久久久久999| 亚洲第一中文字幕| 欧美国产一区二区| 欧美久久久久久久| 亚洲欧美在线高清| 欧美一进一出视频| 亚洲高清视频一区二区| 亚洲激情午夜| 欧美午夜理伦三级在线观看| 欧美一区二区三区在| 久久久久久久网站| 日韩亚洲欧美成人| 亚洲午夜伦理| 影音先锋久久久| 日韩亚洲国产精品| 国产日产欧产精品推荐色 | 亚洲自拍另类| 亚洲欧美日韩在线一区| 韩国一区二区三区美女美女秀| 欧美福利在线观看| 欧美三区在线视频| 久久av一区二区三区漫画| 久久乐国产精品| 亚洲天天影视| 久久午夜av| 一区二区三区福利| 久久国产精品一区二区三区四区| 亚洲国产三级网| 亚洲永久免费精品| 亚洲国产乱码最新视频| 在线一区日本视频| 亚洲国产清纯| 欧美亚洲一级| 亚洲视频一区在线| 久久亚洲一区二区| 欧美伊人久久| 欧美黄色一级视频| 久久婷婷久久| 国产精品一区二区欧美| 亚洲高清免费视频| 国产亚洲欧美另类一区二区三区| 亚洲国产一二三| 亚洲欧美视频一区二区三区| 亚洲欧洲精品一区| 欧美一区二区三区四区高清 | 亚洲精品久久视频| 一色屋精品亚洲香蕉网站| 亚洲一区二区三区高清不卡| 亚洲精品欧美精品| 久久免费国产| 老司机精品视频一区二区三区| 国产精品有限公司| 亚洲网在线观看| 亚洲免费在线电影| 欧美日韩亚洲在线| 91久久夜色精品国产网站| 亚洲福利视频在线| 久久久久亚洲综合| 老司机免费视频一区二区| 国内成人精品一区| 欧美专区在线| 美日韩精品视频免费看| 亚洲国产成人精品久久久国产成人一区 | 亚洲免费激情| 欧美另类69精品久久久久9999| 欧美高清视频一区| 亚洲国产精品电影在线观看| 另类天堂av| 亚洲激情欧美| 亚洲一区精彩视频| 午夜精品亚洲一区二区三区嫩草| 亚洲欧美一区二区精品久久久| 欧美日韩精品中文字幕| 野花国产精品入口| 亚洲一区二区三区四区在线观看| 亚洲性感美女99在线| 日韩亚洲成人av在线| 国产精品播放| 久久综合给合久久狠狠狠97色69| 1000部国产精品成人观看| 免费成人性网站| 欧美激情精品久久久| 一区二区日韩免费看| 欧美日韩国产精品自在自线| 在线亚洲伦理| 午夜精品视频| 伊人色综合久久天天| 日韩一级在线观看| 欧美日韩你懂的| 在线成人免费视频| 欧美久久电影| 一区二区三区视频在线| 亚洲特级片在线| 欧美日韩视频在线一区二区 | 亚洲一区二区三区欧美| 亚洲欧美日本在线| 国产精品中文字幕欧美| 久久精品国产一区二区三区免费看| 久久夜精品va视频免费观看| 一区精品在线播放| 欧美成人国产| 久久久久久精| 国产亚洲亚洲| 久久婷婷国产综合尤物精品| 亚洲天堂av在线免费观看| 国产揄拍国内精品对白 | 蜜臀久久久99精品久久久久久 | 久久久久一区| 亚洲区国产区| 欧美视频一区二区三区…| 亚洲国产精品久久久久久女王| 欧美影院成人| 亚洲黄页一区| 国产乱码精品一区二区三区五月婷| 午夜一区在线| 亚洲私人影吧| 牛牛精品成人免费视频| av成人免费观看| 国产亚洲精品aa| 国产精品久久久久7777婷婷| 久久精品国产91精品亚洲| 亚洲国产合集| 久久国产黑丝|