如何将ATA命令发送到连接到USB / SATA适配器的外部SATA磁盘 [英] How to send ATA command to an external SATA disk connected to USB/SATA adapter

查看:377
本文介绍了如何将ATA命令发送到连接到USB / SATA适配器的外部SATA磁盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我用Visual C ++ 2010为64位Windows 10 PRO编写了一个小C程序


我'使用iotcl命令成功将ATA命令发送到SATA驱动器(设备  \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ,'Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:14px; line-height:1.429em; color:#00188f"> IOCTL_ATA_PASS_THROUGH_DIRECT  。(设备
标识为SCSI设备)



现在我想通过USB / SATA适配器将ATA命令发送到连接到USB端口的同一磁盘。


。(设备被识别为USBSTOR设备)


ioctl命令  IOCTL_ATA_PASS_THROUGH_DIRECT  
不再工作(不支持)


我该怎么办?








Delphine GARRO

解决方案

您好
GARRO Delphine


谢谢发布在这里。


>> ioctl命令  IOCTL_ATA_PASS_THROUGH_DIRECT不再起作用(不支持)


Hello,

I've written little C program with Visual C++ 2010 for 64-bits Windows 10 PRO

I've succeed in sending ATA command to SATA drive ( device \\\\.\\PhysicalDrive3 ) with iotcl command IOCTL_ATA_PASS_THROUGH_DIRECT .(device identified as an SCSI device )

Now I would like to send ATA command to the same disk connected to USB port thanks to an USB/SATA Adapter .

.(device identified as an USBSTOR device )

The ioctl command  IOCTL_ATA_PASS_THROUGH_DIRECT doesn't work any more (NOT SUPPORTED )

How can I do it ?



Delphine GARRO

解决方案

Hi GARRO Delphine,

thanks for posting here.

>>The ioctl command  IOCTL_ATA_PASS_THROUGH_DIRECT doesn't work any more (NOT SUPPORTED )


这篇关于如何将ATA命令发送到连接到USB / SATA适配器的外部SATA磁盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆