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

兩個控制碼,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>
            国产精品久久久一区麻豆最新章节| 久久久久久久波多野高潮日日| 久久综合精品国产一区二区三区| 欧美视频不卡| 国产日韩亚洲欧美精品| 亚洲性夜色噜噜噜7777| 亚洲国产色一区| 久久亚洲欧美| 国产精品xxx在线观看www| 夜夜嗨av一区二区三区中文字幕| 亚洲一区中文| 亚洲天堂网在线观看| 欧美性做爰猛烈叫床潮| 一二三区精品| 在线综合欧美| 国产欧美91| 久久久99国产精品免费| 久久福利精品| 一区二区亚洲| 欧美黄色小视频| 蜜乳av另类精品一区二区| 亚洲经典三级| 亚洲伦理在线| 国产精品任我爽爆在线播放| 亚洲综合三区| 性做久久久久久久久| 国产欧美日韩三区| 日韩亚洲一区二区| 日韩一区二区久久| 国产精品久久久久一区二区三区| 亚洲精品在线三区| 亚洲男人的天堂在线aⅴ视频| 国产日本欧美一区二区三区在线 | 一区二区国产精品| 国产精品亚洲产品| 久久这里有精品15一区二区三区| 久久人人看视频| 一本色道久久综合精品竹菊| 正在播放欧美一区| 在线观看不卡av| 亚洲三级电影全部在线观看高清| 国产精品成人免费视频| 久热re这里精品视频在线6| 欧美激情视频一区二区三区不卡| 中文高清一区| 久久精品国产一区二区三区| 日韩一级片网址| 欧美一区二区视频免费观看| 亚洲免费观看在线观看| 欧美在线免费视频| 亚洲婷婷在线| 麻豆91精品| 欧美亚洲日本一区| 欧美女激情福利| 久久天天躁夜夜躁狠狠躁2022 | 亚洲精品麻豆| 国产一区91| 亚洲天天影视| 亚洲精品一品区二品区三品区| 亚洲一本大道在线| 亚洲伦理自拍| 麻豆九一精品爱看视频在线观看免费| 中文在线资源观看网站视频免费不卡| 99视频国产精品免费观看| 欧美日韩另类视频| 欧美激情二区三区| 国产在线国偷精品产拍免费yy| 一本大道av伊人久久综合| 亚洲国产小视频在线观看| 午夜亚洲激情| 性欧美1819性猛交| 欧美日韩成人综合在线一区二区| 另类尿喷潮videofree | 欧美激情一区二区三级高清视频| 国产伦精品一区二区三区高清版| 最新亚洲视频| 亚洲欧洲精品一区| 美乳少妇欧美精品| 欧美电影免费观看高清完整版| 国产欧美一区二区精品秋霞影院| 一区二区三区久久精品| 一本色道久久88综合亚洲精品ⅰ| 米奇777超碰欧美日韩亚洲| 另类酷文…触手系列精品集v1小说| 国产精品一区二区久久久久| 亚洲调教视频在线观看| 亚洲图片欧美日产| 欧美电影在线观看完整版| 久久九九精品| 一区二区三区亚洲| 六月婷婷一区| 亚洲茄子视频| 亚洲一级一区| 国产精品久久久久999| 亚洲一区二区免费看| 午夜免费日韩视频| 国产精品自拍一区| 欧美专区福利在线| 欧美电影免费观看网站| 日韩特黄影片| 欧美视频在线观看一区二区| 亚洲视频久久| 欧美一区二区三区视频免费| 国产精品一二三四区| 一本久道综合久久精品| 亚洲欧美三级在线| 国产欧美一区二区三区在线看蜜臀| 欧美与欧洲交xxxx免费观看 | 国产精品国产三级国产专区53| 亚洲国产精品999| 在线视频你懂得一区| 国产精品一区二区在线观看不卡 | 老巨人导航500精品| 亚洲精品乱码久久久久久按摩观 | av成人免费观看| 久久久之久亚州精品露出| 亚洲国产专区| 国产精品成人aaaaa网站 | 亚洲视频一区在线| 好看的日韩视频| 欧美激情亚洲综合一区| 妖精视频成人观看www| 久久激情婷婷| 最近中文字幕mv在线一区二区三区四区| 久久午夜激情| 欧美亚洲视频| 一区二区三区.www| 美乳少妇欧美精品| 欧美亚洲综合在线| 亚洲精品日韩欧美| 国内精品久久久| 欧美视频网站| 欧美成人一区二区三区在线观看| 亚洲一区二区三区精品视频| 亚洲第一二三四五区| 欧美中文字幕在线视频| 一区二区在线视频| 免费黄网站欧美| 亚洲三级免费电影| 久久精品国产亚洲一区二区| 一区二区三区视频免费在线观看| 国产香蕉97碰碰久久人人| 欧美日韩亚洲综合| 免费一区二区三区| 久久精品视频导航| 亚洲综合色自拍一区| 夜夜爽av福利精品导航| 欧美激情亚洲激情| 久久天堂精品| 亚洲欧美日本国产有色| 99re亚洲国产精品| 亚洲日本免费| 亚洲精品日韩精品| 91久久在线视频| 亚洲国产欧美在线| 在线观看中文字幕不卡| 国语自产精品视频在线看8查询8| 国产精品久久久久久五月尺| 国产精品福利在线观看网址| 欧美日韩免费在线| 欧美日本不卡高清| 久久精品av麻豆的观看方式| 亚洲女同精品视频| 亚洲欧美精品伊人久久| 亚洲一区不卡| 亚洲欧美日本精品| 亚洲欧美电影在线观看| 亚洲综合精品自拍| 亚洲男人第一av网站| 亚洲一二三四区| 久久久久久香蕉网| 欧美日韩国产a| 国产精品日日摸夜夜摸av| 韩国视频理论视频久久| 亚洲日韩中文字幕在线播放| 亚洲一区二区成人| 美日韩丰满少妇在线观看| 亚洲精品中文在线| 久久国产精品久久精品国产| 欧美成人亚洲成人| 国产欧美日韩激情| 一本色道久久综合| 蜜臀av性久久久久蜜臀aⅴ| 夜夜夜久久久| 免费不卡亚洲欧美| 国产午夜一区二区三区| 亚洲私人黄色宅男| 欧美国产日本在线| 午夜精品久久久久久久男人的天堂 | 久久爱www久久做| 欧美精品videossex性护士| 国产亚洲欧美色| 亚洲一区二区在线免费观看| 欧美高清日韩| 久久精彩视频| 国产自产精品| 久久精品国产99国产精品澳门| 亚洲伦理一区| 欧美激情四色| 91久久久久久久久|