如何以编程方式弹出 USB 大容量存储设备? [英] How do you programmatically eject an USB mass storage device?
本文介绍了如何以编程方式弹出 USB 大容量存储设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 Windows (XP) 中以编程方式弹出(安全移除)USB 大容量存储设备?
How do you programmatically eject(safely remove) an USB mass storage device in Windows (XP)?
推荐答案
在 ,你有脚本 就是这样做的.
In , you have a script which does just that.
它基本上来自这个微软文章和使用kernel32.dll DeviceIoControl函数
It basically comes from this Microsoft article and uses kernel32.dll DeviceIoControl function
当然,这个问题似乎与安全删除USB-驱动使用Win32 API?,哪有其他解决方案
Of course, this question appears to be a duplicate of Safe remove USB-Drive using Win32 API?, which gives other solutions
这篇关于如何以编程方式弹出 USB 大容量存储设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文