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

兩個控制碼,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)  編輯 收藏 引用

<2025年9月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

導航

常用鏈接

留言簿

隨筆分類(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>
            亚洲天堂av综合网| 亚洲精品美女免费| 午夜精品久久久久久久久久久久| 亚洲精品乱码久久久久久日本蜜臀 | 国产精品99免费看 | 欧美第一黄网免费网站| 亚洲人成在线观看| 亚洲美女精品成人在线视频| 欧美午夜宅男影院| 久久女同精品一区二区| 免费在线观看精品| 亚洲无吗在线| 欧美一区二区在线| 在线看日韩av| 亚洲六月丁香色婷婷综合久久| 国产精品国码视频| 久久久久.com| 欧美国产欧美亚洲国产日韩mv天天看完整| 亚洲另类自拍| 亚洲制服少妇| 亚洲电影免费在线| 亚洲调教视频在线观看| 极品尤物av久久免费看| 亚洲精品中文字幕在线观看| 国产亚洲成av人在线观看导航| 欧美大片第1页| 国产精品国产三级国产aⅴ无密码| 久久精品伊人| 欧美日韩国产在线观看| 久久免费视频在线观看| 欧美日韩大片一区二区三区| 久久激情视频| 欧美视频在线视频| 欧美成人一区二区三区在线观看 | 亚洲深爱激情| 亚洲国产综合视频在线观看| 亚洲欧美国产三级| 在线综合亚洲| 免费成人你懂的| 久久精品水蜜桃av综合天堂| 欧美日韩中文字幕| 亚洲激情成人| 在线免费日韩片| 亚洲砖区区免费| 亚洲视频精选在线| 欧美成人午夜免费视在线看片| 久久精品国产综合精品| 国产精品成人在线| 亚洲理论在线| 一区二区三区你懂的| 欧美/亚洲一区| 欧美不卡一区| 狠狠综合久久| 欧美在线视频一区二区| 欧美一区二区大片| 国产精品毛片大码女人| 亚洲作爱视频| 一区二区激情视频| 欧美日本三区| 亚洲精品久久久久久久久久久久 | 日韩亚洲不卡在线| 欧美不卡视频一区| 亚洲黄色视屏| 野花国产精品入口| 欧美日韩美女| 一区二区日韩伦理片| 亚洲伊人伊色伊影伊综合网| 欧美成人一品| 亚洲精品一区久久久久久| 亚洲精品一区二区三区99| 嫩草国产精品入口| 亚洲片在线资源| 亚洲一区二区三区四区五区午夜| 国产精品高潮在线| 亚洲一区二区欧美| 久久精品一区二区三区四区| 一区二区在线不卡| 麻豆av一区二区三区久久| 欧美成在线视频| 99国产精品久久久久老师| 欧美日韩三级| 亚洲欧美综合精品久久成人 | 亚洲综合日韩在线| 国产午夜久久久久| 快射av在线播放一区| 亚洲精品欧美| 在线一区二区视频| 国产偷自视频区视频一区二区| 久久精品国产欧美激情| 亚洲第一精品影视| 亚洲免费视频一区二区| 国产亚洲精久久久久久| 理论片一区二区在线| 亚洲精选一区二区| 久久久久91| 中文高清一区| 国产在线一区二区三区四区 | 久久一区二区三区国产精品 | 欧美激情按摩| 亚洲欧美国产77777| 国产一区二区三区黄| 欧美二区在线观看| 欧美一级欧美一级在线播放| 欧美激情一区二区三区成人| 国内成人精品2018免费看| 女人天堂亚洲aⅴ在线观看| 亚洲九九精品| 国产一区再线| 欧美少妇一区二区| 久久婷婷国产麻豆91天堂| 在线亚洲欧美视频| 亚洲国产精品电影| 久久精品一本| 亚洲欧美国产视频| 日韩视频在线观看一区二区| 国产一区二区三区四区hd| 欧美日本乱大交xxxxx| 久久男人资源视频| 欧美一级播放| 亚洲小说欧美另类社区| 亚洲激情网址| 欧美激情一区二区三区四区| 欧美在线视频一区二区| 亚洲在线网站| 亚洲少妇最新在线视频| 亚洲国产精品视频| 一区二区在线视频观看| 国产区亚洲区欧美区| 欧美性猛交99久久久久99按摩| 久久一区二区三区超碰国产精品| 欧美一区1区三区3区公司| 亚洲一区www| 一区二区三区www| 日韩午夜激情av| 亚洲精品国产欧美| 亚洲精品乱码久久久久久日本蜜臀| 欧美chengren| 你懂的亚洲视频| 欧美+日本+国产+在线a∨观看| 久久国产一区二区| 久久精品99久久香蕉国产色戒| 亚洲欧美日韩精品| 午夜精品一区二区三区在线播放 | 国产视频不卡| 国产日韩欧美日韩大片| 国产欧美亚洲一区| 国产综合婷婷| 在线观看视频欧美| 亚洲激情影院| 9l国产精品久久久久麻豆| 亚洲视频一区二区在线观看| 亚洲视频免费观看| 先锋影音国产精品| 久久精品国产99| 欧美.日韩.国产.一区.二区| 亚洲高清资源| 一本色道久久综合亚洲精品小说 | 亚洲国产综合在线| 亚洲精品视频在线播放| 一区二区三区四区蜜桃| 亚洲欧美在线免费观看| 久久精品视频在线免费观看| 久久婷婷亚洲| 欧美日韩一区二区三区免费| 国产精品视频1区| 精品99视频| av成人手机在线| 欧美一区二区视频在线| 牛牛精品成人免费视频| 一本色道久久综合| 久久精品国产99国产精品澳门| 六月婷婷久久| 国产精品国产三级国产专区53| 国产一区二区三区视频在线观看 | 欧美一区二区三区四区在线观看地址| 欧美在线不卡视频| 亚洲大片精品永久免费| 亚洲午夜日本在线观看| 久久久一区二区| 国产精品a久久久久| 亚洲第一精品久久忘忧草社区| 亚洲天堂激情| 理论片一区二区在线| 亚洲色图在线视频| 免费欧美高清视频| 国产欧美日本| 一区二区精品在线| 免费久久精品视频| 亚洲婷婷在线| 欧美精品免费在线| 在线观看精品视频| 午夜精品福利电影| 亚洲免费大片| 美女网站在线免费欧美精品| 国产欧美另类| 亚洲一区二区三区久久| 亚洲韩国精品一区| 久久天堂成人| 国产亚洲激情视频在线| 亚洲欧美日韩精品久久奇米色影视|