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

兩個控制碼,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 閱讀(2800) 評論(0)  編輯 收藏 引用

<2008年7月>
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

導航

常用鏈接

留言簿

隨筆分類(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按摩| 欧美成人自拍| 欧美日韩1080p| 亚洲欧美一区二区三区极速播放| 亚洲在线视频网站| 一区在线视频观看| 最新亚洲电影| 国产精品久久久久久久午夜| 久久人91精品久久久久久不卡| 久久一区中文字幕| 一区二区三区色| 性视频1819p久久| 亚洲精品视频在线播放| 亚洲在线观看免费| 亚洲黄色天堂| 亚洲一区国产精品| 亚洲精品五月天| 亚洲欧美激情精品一区二区| 在线精品福利| 亚洲一区二区三区三| 亚洲国产清纯| 午夜久久99| 一本高清dvd不卡在线观看| 欧美一级大片在线观看| 亚洲精品国久久99热| 亚洲欧美综合精品久久成人| 亚洲日韩欧美视频一区| 性欧美1819性猛交| 一区二区三区欧美| 久久视频免费观看| 欧美一区观看| 欧美日韩在线视频一区二区| 久久综合伊人| 国产农村妇女毛片精品久久麻豆| 亚洲欧洲日产国码二区| 一区二区三区在线不卡| 亚洲永久在线观看| 亚洲午夜av在线| 女同性一区二区三区人了人一 | 在线日韩欧美| 欧美亚洲综合网| 午夜一区不卡| 国产精品成人观看视频免费| 最新69国产成人精品视频免费| 国产一区二区三区久久久| 亚洲一区三区在线观看| 一区二区三区国产| 欧美激情第10页| 欧美激情精品| 亚洲国产综合视频在线观看| 欧美一区二区日韩一区二区| 午夜天堂精品久久久久| 国产精品ⅴa在线观看h| 一区二区三区国产在线| 99国产精品自拍| 欧美久久99| 亚洲精品中文字幕在线| 亚洲免费av电影| 欧美精品久久久久久久免费观看| 亚洲成人在线网| 亚洲精品国精品久久99热| 欧美成人综合一区| 亚洲日韩视频| 亚洲性感美女99在线| 欧美性事免费在线观看| 亚洲视频在线二区| 性色av一区二区三区| 国产偷久久久精品专区| 欧美在线视频全部完| 久久综合导航| 亚洲日本欧美天堂| 欧美日韩一区三区| 午夜精品久久久久久久99水蜜桃 | 欧美激情一区二区三区成人 | 在线观看国产欧美| 葵司免费一区二区三区四区五区| 欧美成人精品激情在线观看| 亚洲欧洲日本国产| 欧美日韩亚洲另类| 午夜精品一区二区三区四区 | 性欧美大战久久久久久久久| 国产伦精品一区二区三区四区免费| 亚洲欧美一区二区原创| 男人天堂欧美日韩| 在线一区免费观看| 国产视频综合在线| 欧美成在线视频| 宅男噜噜噜66一区二区66| 久久国产一区二区| 99精品久久久| 国产一区二区三区黄视频| 欧美不卡高清| 校园激情久久| 亚洲精品免费看| 久久三级福利| 在线视频你懂得一区二区三区| 国产日韩欧美一二三区| 欧美精品九九| 欧美影院精品一区| 亚洲欧洲午夜| 久久综合导航| 午夜日本精品| 一本综合精品| 亚洲电影在线观看| 国产精品综合色区在线观看| 男女激情久久| 欧美一区二区免费视频| 99精品欧美一区二区蜜桃免费| 久久亚洲免费| 欧美一级专区免费大片| 99日韩精品| 亚洲第一网站| 国内外成人免费激情在线视频| 欧美日在线观看| 欧美另类一区| 另类亚洲自拍| 久久精品欧美| 性18欧美另类| 亚洲欧美另类久久久精品2019| 亚洲精品小视频在线观看| 麻豆精品在线视频| 久久免费视频在线观看| 欧美一级淫片aaaaaaa视频| av成人激情| 日韩一级片网址| 亚洲日本中文字幕| 最新成人av网站| 在线欧美日韩精品| 伊人色综合久久天天| 国产日韩欧美精品综合| 国产精品影视天天线| 国产精品国产三级国产专播精品人| 欧美日韩成人| 欧美视频一区在线观看| 欧美日韩一区在线观看| 欧美日韩高清免费| 欧美日本簧片| 欧美日韩性视频在线| 欧美体内谢she精2性欧美| 欧美日韩在线视频观看| 国产精品99免费看| 国产精品日韩精品| 国产亚洲午夜| 在线观看视频一区二区欧美日韩| 伊人夜夜躁av伊人久久| 激情懂色av一区av二区av| 在线观看av不卡| 亚洲国产精品一区二区第一页 | 99国产精品久久| 一本一本久久a久久精品综合妖精 一本一本久久a久久精品综合麻豆 | 亚洲欧洲精品一区二区三区不卡 | 国产一区二区日韩精品欧美精品| 国产精品视频免费一区| 国产无遮挡一区二区三区毛片日本| 国产三区精品| 亚洲电影在线免费观看| 一本色道久久综合| 欧美一级久久久久久久大片| 久久国产精品久久w女人spa| 久久亚洲精品中文字幕冲田杏梨| 欧美国产视频日韩| 一区二区欧美在线| 欧美在线看片| 欧美激情视频一区二区三区不卡| 欧美日韩999| 国内精品模特av私拍在线观看| 亚洲国产精品久久久久婷婷老年| 99热免费精品| 欧美在线观看视频一区二区三区| 美日韩精品视频| 99国产精品久久久| 欧美在线视频一区二区三区| 欧美大片91| 国产亚洲欧美日韩精品| 99riav久久精品riav| 欧美专区福利在线| 91久久精品国产91性色tv| 亚洲欧美激情一区| 欧美激情在线狂野欧美精品| 国产手机视频一区二区| 夜夜嗨av一区二区三区| 久久精品中文字幕免费mv| 亚洲国产导航| 久久精品国产精品亚洲| 欧美视频免费在线观看| 亚洲国产日韩精品| 久久激情五月婷婷| 日韩亚洲欧美精品| 美女久久网站| 狠狠色综合色区| 亚洲欧美视频一区| 亚洲精品国产欧美| 免费成人黄色片| 一区二区三区我不卡| 久久精品成人欧美大片古装| 一本一本a久久|