C++:如何从快捷方式打开 IShellFolder 驱动器文件夹

发布于 2024-07-16 02:27:59 字数 513 浏览 9 评论 0原文

我在快捷方式中使用以下命令在 Windows 资源管理器中打开我的虚拟驱动器。 %SystemRoot%\Explorer.exe /e,::{MyExtension CLSID}

虚拟驱动器使用 IShellFolder 接口,是一个 ShellExtension。 它有几个预定义的文件夹。 问题是我可以使用上述语句直接在Windows资源管理器中打开虚拟驱动器,但无法直接打开其文件夹之一。

此链接解释了如何打开 IShellFolder http://msdn.microsoft.com/en- us/library/bb776817(VS.85).aspx#

但我不知道如何使用 objectname 参数 %SystemRoot%\Explorer.exe /e,::{MyExtension CLSID},对象名

I am using the following command in a shortcut to open my virtual drive in Windows Explorer.
%SystemRoot%\Explorer.exe /e,::{MyExtension CLSID}

The virtual drive uses IShellFolder interface and is a ShellExtension. It has a couple of predefined folders in it.
The problem is that I can open the virtual drive in Windows explorer directly using the above statement but I cannot directly open one of its folders.

This link explains how to open a IShellFolder
http://msdn.microsoft.com/en-us/library/bb776817(VS.85).aspx#

but I am not sure how to use the objectname param
%SystemRoot%\Explorer.exe /e,::{MyExtension CLSID},objectname

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

远昼 2024-07-23 02:27:59

我使用了 GMail Drive Shell 扩展,安装了它,并在命名空间内创建了一个文件夹。 然后我使用上面的方法(/E,::{CLSID})创建快捷方式并在末尾添加“,foldername”。
它工作得很好,我认为您需要检查您的 IPersistFolder::Initialize实施。

I took the GMail Drive Shell extension, installed it, and create a folder inside the namespace. Then I use the above method (/E,::{CLSID}) to create the shortcut and added ",foldername" at the end.
It worked perfectly, I think that you need to check your IPersistFolder::Initialize implementation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文