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

兩個控制碼,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>
            欧美电影电视剧在线观看| 国产精品呻吟| 久久婷婷成人综合色| 亚洲自拍都市欧美小说| 国内成人精品2018免费看| 欧美精品日韩| 欧美精品网站| 欧美四级剧情无删版影片| 欧美成熟视频| 欧美精品导航| 亚洲一区亚洲| 久久精品一区二区三区中文字幕| 一区二区av在线| 欧美一区二区三区在线视频| 久久久久成人精品| 欧美精品一区二区三区四区| 欧美大片91| 国产精品久久久久久久7电影| 国产精品大全| 国产精品无码专区在线观看| 在线观看亚洲一区| 亚洲日本免费电影| 亚洲欧美在线免费| 欧美a级理论片| 亚洲在线免费观看| 欧美福利视频| 极品少妇一区二区| 亚洲在线视频网站| 免费观看在线综合色| 亚洲一区二区三区中文字幕| 久久福利影视| 国产嫩草一区二区三区在线观看| 亚洲黄色影片| 国产精品嫩草影院av蜜臀| 国产一区二区精品在线观看| 亚洲一区区二区| 欧美成人在线免费观看| 欧美一区二区在线免费播放| 国产精品午夜国产小视频| 99国产精品久久久久老师| 欧美mv日韩mv国产网站app| 性欧美办公室18xxxxhd| 国产精品视频一区二区三区| 中文一区在线| 亚洲美女毛片| 欧美小视频在线| 欧美一区二区三区视频| 国产真实精品久久二三区| 欧美二区在线观看| 亚洲国产日韩美| 一本色道久久综合亚洲精品婷婷| 久久久一区二区| 亚洲啪啪91| 亚洲天堂免费在线观看视频| 国产精品v欧美精品v日韩| 亚洲欧美日本国产有色| 国产精品99久久久久久久女警| 欧美涩涩网站| 久久一区二区三区av| 欧美成人黄色小视频| 正在播放亚洲一区| 欧美在线不卡| 日韩视频国产视频| 欧美一区日韩一区| 亚洲免费成人av| 欧美在线观看视频| 一区二区欧美在线| 亚洲欧美电影在线观看| 亚洲自拍另类| 夜夜爽www精品| 久久久久国产精品午夜一区| 亚洲一级一区| 欧美成人精品不卡视频在线观看| 午夜视频在线观看一区二区三区| 久久黄色网页| 久久久欧美精品| 国产精品jizz在线观看美国| 亚洲国产精品久久久久婷婷884| 欧美日韩国产免费| 亚洲风情在线资源站| 在线观看欧美日韩国产| 欧美一区二区三区另类| 午夜视频一区在线观看| 国产精品高清在线| 亚洲午夜视频| 久热综合在线亚洲精品| 亚洲高清网站| 欧美精品久久一区二区| 亚洲精品资源| 性色av一区二区三区| 激情欧美日韩| 欧美激情一级片一区二区| 夜夜嗨av一区二区三区中文字幕| 一道本一区二区| 国模精品娜娜一二三区| 久久综合中文| 一本色道久久88综合日韩精品| 亚洲欧美在线磁力| 亚洲国产精品久久精品怡红院| 欧美精品一区二区蜜臀亚洲| 一区二区三区在线视频免费观看| 久久天天躁狠狠躁夜夜av| 91久久在线播放| 国产偷国产偷亚洲高清97cao| 看欧美日韩国产| 欧美一区二区三区喷汁尤物| 韩国精品久久久999| 欧美日韩视频在线观看一区二区三区 | 亚洲日本精品国产第一区| 亚洲综合99| 日韩视频永久免费| 国内精品伊人久久久久av影院| 免费欧美电影| 久久久.com| 久久av一区二区| 欧美一区激情| 欧美在线精品免播放器视频| 亚洲网站在线看| 亚洲欧美日本伦理| 亚洲男人影院| 9i看片成人免费高清| 亚洲欧美在线观看| 欧美制服丝袜第一页| 亚洲女优在线| 欧美呦呦网站| 看欧美日韩国产| 免费久久久一本精品久久区| 看片网站欧美日韩| 亚洲片国产一区一级在线观看| 亚洲国产老妈| 中文av一区二区| 欧美在线看片| 欧美日韩美女在线观看| 欧美午夜精品久久久| 国产综合欧美| 一区二区三区日韩在线观看| 亚洲视频一区二区在线观看| 午夜在线电影亚洲一区| 久久久综合网站| 亚洲人午夜精品| 噜噜噜躁狠狠躁狠狠精品视频| 欧美日韩另类视频| 亚洲专区在线视频| 亚洲高清视频的网址| 一区二区三区精品| 男同欧美伦乱| 久久久xxx| 国产精品亚洲综合天堂夜夜| 亚洲国产精品va| 久久久午夜精品| 亚洲尤物精选| 国产精品一区亚洲| 欧美亚洲专区| 中国成人亚色综合网站| 欧美日韩精品综合在线| 久久婷婷亚洲| 一区二区三区精品视频| 久久成人一区| 精品9999| 亚洲日本成人网| 欧美高清日韩| 在线视频欧美日韩精品| 亚洲精品美女久久久久| 欧美日韩激情小视频| 亚洲一区二区成人在线观看| 91久久中文| 欧美午夜激情视频| 久久婷婷国产综合精品青草| 久久精品国产第一区二区三区| 国内成+人亚洲+欧美+综合在线| 久久久国产精品一区二区中文| 小嫩嫩精品导航| 亚洲精品在线三区| 亚洲一区免费在线观看| 国产偷自视频区视频一区二区| 久久久午夜电影| 欧美精品久久久久久久久老牛影院 | 亚洲激情第一页| 亚洲一区二区三区四区视频| 国产一二精品视频| 亚洲精品亚洲人成人网| 激情五月综合色婷婷一区二区| 亚洲国产一成人久久精品| 国际精品欧美精品| 韩国v欧美v日本v亚洲v| 亚洲日韩欧美一区二区在线| 国产日韩精品一区二区| 亚洲免费电影在线观看| 亚洲人在线视频| 久久人人爽人人爽| 美女视频黄免费的久久| 国产日韩欧美在线播放| 一区二区激情| 亚洲欧美成人网| 欧美三级网页| 亚洲免费伊人电影在线观看av| 一区二区欧美在线| 欧美日韩在线免费视频| 一区二区三区精品| 亚洲尤物精选|