阅读:2823回复:3
去除“安全地移除硬件”对话框
程序安全弹出U盘后,会弹出“设备现在可安全地从系统移除”,在程序里有什么方法让此对话框不出现,谢谢
|
|
沙发#
发布于:2005-02-02 16:07
坛子里经常有人问这个问题。搜一下就知道了。
:D |
|
|
板凳#
发布于:2005-02-03 12:44
Microsoft Win2k USB driver stack has a bug, you need write upper filter driver to disable this.
In your filter driver, when you process IRP_MN_QUERY_CAPABILITIES, set DeviceCapabilities.Capabilities->SurpriseRemovalOK = TRUE |
|
地板#
发布于:2005-02-06 17:46
不是win2k的bug,看看walteronly那本书,有代码的:)
|
|