拔下USB记忆棒后如何自动关闭USB窗口 [英] How to close USB window automatically after USB stick is unplugged

查看:62
本文介绍了拔下USB记忆棒后如何自动关闭USB窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上找不到任何答案......

I just can not find any answer online......

我正在开发一款WCE7设备。 USB存储驱动程序工作正常。但我对USB存储文件夹有一个小问题。

I have a WCE7 device in developing. The USB storage driver works fine. But I have a small problem regarding the USB storage folder.

导航到USB记忆棒文件夹后,例如"USBDisk",我拔下USB记忆棒,"USBDisk"窗口内的内容在大约4秒后消失。但是这个空白的窗户永远都在那里。下次,当我再次插入相同的USB记忆棒时。
这个'USBDisk'没有显示内容。单击工具栏中的刷新按钮也没有用。我必须打开"我的设备"并再次点击"USBDisk"文件夹才能看到内容。现在有两个USBDisk窗口,一个是空白,另一个是内容...

After I navigate into the USB stick folder, for example 'USBDisk', I unplug USB stick, the content inside 'USBDisk' window disappears after about 4 seconds. But this blank windows stays there for ever. Next time, when I plug in the same USB stick again. This 'USBDisk' does not show the content. Clicking the refresh button in toolbar also does not help. I have to open 'My Device' and click into 'USBDisk' folder again to see the content. And now there are two USBDisk window, one blank, the other with content...

我看到其他一些WINCE设备能够在USB棒后不久自动关闭这个'USBDisk'窗口拔出。是通过某些注册表设置还是其他方式实现的?

I saw some other WINCE device is able to close this 'USBDisk' window automatically shortly after USB stick is unplugged. Is it achieved by some registry settings or something else?

提前谢谢

推荐答案

我相信您必须构建自定义版本的资源管理器才能实现目标。您可以检测到USB设备断开连接并自动关闭窗口。或者您可以将其保持打开状态并检测重新连接并更新窗口。以前的
论坛和新闻组帖子涵盖了克隆和修改公共组件的过程:尝试搜索:

I believe you'd have to build a customized version of Explorer to accomplish your goal. You could detect disconnect of USB devices and automatically close the window. Or you could keep it open and detect reconnect and update the window. There are previous forum and newsgroup posts covering the process of cloning and modifying public components: Try a search on:

" windows ce" clone modify explorer.exe

"windows ce" clone modify explorer.exe

Paul T。


这篇关于拔下USB记忆棒后如何自动关闭USB窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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