Windows 7:属性处理程序在资源管理器中工作,但在 FileOpenDialog 中不起作用?

发布于 2024-12-27 19:38:29 字数 311 浏览 7 评论 0原文

致力于为 Windows 7 中的自定义文件类型编写自定义属性处理程序。我已经安装了 Windows 7 SDK 并构建了示例属性处理程序。注册处理程序后,它在 Windows 资源管理器中运行良好,但在通用文件打开对话框中,自定义值不会出现。有谁知道我是否需要做一些特殊的事情才能使属性出现在常见对话框中?

探索者: 在此处输入图像描述

文件打开对话框: 在此处输入图像描述

Working on writing a custom property Handler for our custom file type in windows 7. I have installed the Windows 7 SDK and built the sample Property Handler. After registering the handler, it works great in Windows Explorer, but in the common file open dialog the custom values do not appear. Does anyone know if there is something special I need to do to get the properties to appear in common dialogs?

Explorer:
enter image description here

File Open Dialog:
enter image description here

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

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

发布评论

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

评论(1

木格 2025-01-03 19:38:29

好吧,想通了。这是交易。我的应用程序是 32 位的,并且使用的是 x64 系统。因为PropertyHandler是用x64编写的,以支持进程外的shell。但对于文件打开对话框,它需要在进程内运行,因此 x64 dll 无法运行。我通过创建一个快速的 x64 应用程序来确认这一点,并且文件打开对话框的工作方式与操作系统相同。希望这能帮助其他人在我的立场上,讨厌回答我自己的问题,但不希望人们在这个问题上浪费 NRG,因为我找到了解决方案。

OK, figured it out. Here is the deal. My app is 32 bit and I am on a x64 system. Because the PropertyHandler is written in x64 to support the shell out of process. But for the file open dialog it needs to run inprocess, so the x64 dll can not run. I confirmed this by creating a quick x64 app and the fileopen dialog works the same as the OS. Hope this helps someone else in my shoes later on, hate answering my own question, but don't want people wasting NRG on this one as I found the solution.

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