gpt4 book ai didi

c# - 以编程方式确定安装了哪些 iFilters

转载 作者:行者123 更新时间:2023-11-30 12:18:49 24 4
gpt4 key购买 nike

我有一个问题,Adobe PDF iFilter 不能始终如一地为我们工作。因此,我们喜欢使用 Foxit 中的那个。 .问题是,如果我们安装了 Foxit iFilter,然后客户端决定重新安装 Adob​​e Reader,它可能会覆盖 Foxit iFilter。

我们可以使用 IFilter Explorer 等工具查看这个,但我想要一种在应用程序中执行此操作并警告用户/客户端 iFilter 已更改的方法。

有没有办法从代码 (C#) 检查 iFilters?或者这个问题的其他潜在解决方案?

最佳答案

由于foxit IFilter 实现了IPersistStream 接口(interface),我想你可以尝试从IFilter 获取这个接口(interface),并查询它的CLSID 看它是否是来自foxit 的。 Foxit IFilter 的 CLSID 为 {987f8d1a-26e6-4554-b007-6b20e2680632},这是 IFilter Explorer 中的“Persistent Handlers Addins Registered”列。

Adobe 的 IFilter 似乎没有实现这个接口(interface)。

关于c# - 以编程方式确定安装了哪些 iFilters,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1394356/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com