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

兩個(gè)控制碼,Windows下發(fā)送ATAPI Command必須用到的

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

 


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 閱讀(2814) 評(píng)論(0)  編輯 收藏 引用


只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


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

導(dǎo)航

常用鏈接

留言簿

隨筆分類(11)

隨筆檔案(79)

文章檔案(1)

收藏夾(38)

學(xué)習(xí)網(wǎng)站

一般網(wǎng)站

最新隨筆

搜索

積分與排名

最新評(píng)論

閱讀排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            亚洲欧美精品suv| ●精品国产综合乱码久久久久 | 亚洲人成7777| 欧美午夜国产| 欧美成人一品| 欧美日韩国产三区| 男女视频一区二区| 国产色综合久久| 亚洲视频综合在线| 日韩一级大片在线| 欧美a一区二区| 免费成人网www| 韩国v欧美v日本v亚洲v| 亚洲欧美一区二区三区久久| 亚洲一区二区精品| 欧美激情一区二区三区四区| 欧美成年人网| 一区二区三区在线看| 亚洲欧美视频在线| 西西人体一区二区| 国产精品丝袜91| 亚洲日本在线视频观看| 久久综合久久综合久久| 久热精品视频在线| 欧美自拍偷拍| 久久久综合精品| 韩国av一区二区三区| 欧美一区二区成人| 久久久国产视频91| 黄色亚洲大片免费在线观看| 久久国产日韩欧美| 免费成人黄色片| 亚洲高清精品中出| 欧美国产第一页| 亚洲欧洲三级| 亚洲视频高清| 国产九色精品成人porny| 亚洲午夜高清视频| 久久精品道一区二区三区| 国产日韩综合| 久久精品视频导航| 欧美高清视频在线播放| 亚洲精品欧美在线| 国产精品久久久久久户外露出| 欧美在线观看网址综合| 国产目拍亚洲精品99久久精品 | 久久精品国产一区二区三区免费看| 一区二区三区在线看| 久久噜噜噜精品国产亚洲综合 | 亚洲视频第一页| 欧美日韩一视频区二区| 亚洲美女电影在线| 亚洲一区国产视频| 欧美激情综合在线| 99re这里只有精品6| 久久精品国产久精国产爱| 在线观看一区| 欧美午夜视频在线观看| 久久精品一区二区三区中文字幕| 午夜精品视频一区| 怡红院av一区二区三区| 欧美另类亚洲| 欧美在线免费播放| 亚洲精品少妇网址| 久久久久成人网| 99在线热播精品免费| 国内精品视频久久| 欧美美女操人视频| 久久精品国产久精国产一老狼| 亚洲男人的天堂在线| 极品中文字幕一区| 国产精品久久久久久久久免费樱桃 | 亚洲永久免费| 免费成人性网站| 午夜精品成人在线| 在线电影欧美日韩一区二区私密| 欧美一级大片在线免费观看| 激情亚洲网站| 欧美性一区二区| 久久夜色精品国产| 亚洲欧美日韩另类| 亚洲日本成人在线观看| 国产日韩精品久久| 欧美日韩另类视频| 另类综合日韩欧美亚洲| 亚洲欧美电影在线观看| 亚洲精品国久久99热| 欧美www视频| 久久久精品一区二区三区| 亚洲视频高清| 亚洲作爱视频| **性色生活片久久毛片| 国内精品久久久久国产盗摄免费观看完整版 | 国产一区美女| 国产精品久久久久久久久久妞妞| 亚洲精品在线看| 美女主播视频一区| 久久亚洲欧洲| 久久亚洲图片| 久久久国产精品亚洲一区 | 一区二区三区福利| 亚洲国产一区二区三区青草影视| 久久综合狠狠| 久久久精品国产免大香伊| 欧美亚洲视频一区二区| 99精品欧美一区二区三区| 亚洲看片网站| 亚洲精品永久免费精品| 99热免费精品在线观看| 亚洲人成网在线播放| 亚洲日本欧美| 亚洲精品综合久久中文字幕| 亚洲伦理网站| 中日韩视频在线观看| 中国成人黄色视屏| 亚洲曰本av电影| 午夜日本精品| 久久精品女人天堂| 美女国内精品自产拍在线播放| 欧美日韩午夜在线| 欧美日韩综合精品| 国产精品theporn| 国产精品日本欧美一区二区三区| 久久国产一区二区| 久久精品人人做人人综合| 久久se精品一区精品二区| 久久午夜精品一区二区| 欧美激情一区在线| 亚洲视频一区在线| 亚洲综合欧美| 久久久久网站| 欧美激情一二区| 国产精品久久久999| 国产深夜精品| 91久久精品一区| 亚洲一区二区精品在线观看| 先锋影音一区二区三区| 麻豆精品在线播放| 99视频一区二区| 久热国产精品| 亚洲靠逼com| 亚欧成人在线| 欧美成人一品| 国产精品亚洲综合色区韩国| 怡红院精品视频| 一区二区三区欧美视频| 久久精品1区| 91久久精品一区| 午夜精品久久99蜜桃的功能介绍| 9人人澡人人爽人人精品| 久久精品亚洲精品国产欧美kt∨| 亚洲视频国产视频| 久久精品30| 亚洲欧洲精品天堂一级| 久久av一区二区三区| 欧美日韩久久不卡| 欧美国产日本| 国产一区二区三区在线观看精品 | 亚洲高清毛片| 亚洲综合日本| 亚洲第一天堂av| 亚洲一区国产一区| 欧美精品二区| 激情欧美日韩一区| 亚洲在线一区二区| 最新日韩在线视频| 久久久夜夜夜| 国产欧美视频一区二区三区| 一本大道av伊人久久综合| 免费观看不卡av| 香蕉乱码成人久久天堂爱免费| 亚洲欧美一区二区三区极速播放| 亚洲婷婷在线| 欧美日本久久| 亚洲日本黄色| 欧美国产日韩精品| 久久久久国产一区二区| 国产精品狼人久久影院观看方式| 国产欧美日韩精品丝袜高跟鞋| 国产日韩精品久久| 亚洲一区二区三区在线播放| 亚洲成色精品| 久久久精品一区| 韩国自拍一区| 久久久久久欧美| 亚洲男人第一av网站| 国产精品久久久久aaaa| 亚洲一区二区在线视频| 日韩一级免费| 欧美色偷偷大香| 亚洲一区二区伦理| 亚洲图片欧美午夜| 亚洲精品色婷婷福利天堂| 欧美精品色综合| 一本色道久久综合亚洲精品婷婷| 欧美一级淫片播放口| 欧美中文字幕在线播放| 一区二区三区你懂的| 欧美日韩成人在线| 亚洲一区二区三区777|