通过注册表隐藏win7上的驱动器 [英] Hide drive on win7 by registry

查看:94
本文介绍了通过注册表隐藏win7上的驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在win7上我在注册表中设置nodrives,然后发送WM_SETTINGCHANGE刷新windows shell,我发现驱动程序仍然存在(驱动程序图标变得透明)。如果我重新启动explorer.exe进程,它隐藏确定。有没有方法可以在没有重启资源管理器的情况下立即隐藏驱动器?

On win7 i set "nodrives" in registry,then send WM_SETTINGCHANGE refresh windows shell,I found the driver still exist(the driver icon become transparent ). if i restart explorer.exe process, it hide ok. Is there any method to hide drive at once without restart explorer ?

推荐答案

仍然存在是什么意思?我不认为这个注册表选项真正使驱动器(当你写驱动程序你可能意味着驱动器,对吗?)不存在。看起来它只是隐藏了Shell用户的驱动器。此外,文档描述它仅与驱动器号相关。您可以使用没有字母的驱动器安装到目录。请参阅:

http://technet.microsoft.com/en-us /library/cc938267.aspx [ ^ ]。



在某种程度上,它解释了重启资源管理器时效果显现的原因。我只会注意到它可能不只是资源管理器,而是任何其他文件管理器或只是使用Shell API的应用程序。



另一种方法?首先,我会质疑你需要重新绑定驱动器(卷)? Microsoft描述了nordives的行为,因此,您需要以同样的方式描述您想要的行为,并且重要的是,解释原因。对不起,我仍然无法保证我能够回答。



-SA
What would you mean by "still exists". I don''t think this registry option really makes drives (when you wrote "driver" you probably meant "drive", right?) non-existing. It looks like it merely hides drives from the user of the Shell. Besides, the documentation describes that it is related only to drive letters. You can use a drive without a letter, as mounted to a directory. Please see:
http://technet.microsoft.com/en-us/library/cc938267.aspx[^].

To certain extent, it explains why the effect is manifested when you restart the explorer. I would only note that it could be not just explorer, but any other file manager or just the application using Shell API.

Another method? To start with, I would question in what sense would you need to restring the drives (volumes)? Microsoft describes the behavior of "nordives", so, in the same way, you would need to describe the behavior you want, and, importantly, explain why. And sorry, I still cannot guarantee that I would be able to answer.

—SA


这篇关于通过注册表隐藏win7上的驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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