C++:如何从快捷方式打开 IShellFolder 驱动器文件夹
我在快捷方式中使用以下命令在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用了 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.