如何在 FileOpen 对话框中禁用 Shell 扩展

发布于 2024-08-08 17:08:17 字数 289 浏览 13 评论 0原文

我说的是 Windows shell 扩展。

我有一个 shell 扩展,它可以显示我的自定义文件类型的特定属性,例如 *.filetype。当然,这会导致我的 shell 扩展 dll 被加载到 explorer.exe 进程中。但现在如果我在任何应用程序中触发 FileOpen 对话框并检查该对话框内的文件属性(以记事本为例),那么这些 shell 扩展 dll 将被加载到 notepad.exe 进程中,这是我想避免的情况。

那么是否可以在 FileOpen 对话框中禁用特定的 shell 扩展?

谢谢。

I am talking about windows shell extensions.

I have a shell extension which could show the specific properties of my customized file type, say, *.filetype. And of course it will cause my shell extension dlls being loaded into the explorer.exe process. But now if I fire the FileOpen dialog in any application and check the file properties inside that dialog(notepad as an example), then these shell extension dlls would be loaded into notepad.exe process, which is the case I want to avoid.

So is it possible to disable a specific shell extension in FileOpen Dialog?

Thanks.

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

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

发布评论

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

评论(1

厌味 2024-08-15 17:08:17

创建一个 shim dll,它除了加载真实的(大)shell 扩展 dll 之外什么也不做。
该 shim dll 的唯一工作是检查当前进程是否为“explorer.exe”。如果是,填充程序将加载真正的 dll 并将所有调用转发到那里。如果不是,填充程序不会加载真正的 dll,而只是向所有请求返回 E_NOTIMPL 或类似的内容。

Create a shim dll which does nothing but load your real (big) shell extension dll.
The only job of that shim dll is to check whether the current process is "explorer.exe". If it is, the shim loads the real dll and forwards all calls there. If it's not, the shim doesn't load your real dll but simply returns E_NOTIMPL or something like that to all requests.

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