C# 寄存器嵌入式 Directshow 过滤器
我正在考虑在运行时注册 directshow 过滤器,并且可能需要使用反射来执行此操作,然后以某种方式对二进制数据调用 regsvr32 。不确定这是否可能,听起来很棘手。基本上我有一个 dll 文件,它是一个过滤器,我将它作为嵌入式资源添加到解决方案中,但在此之后我陷入困境......不知道如何注册它。有人有任何见解吗?这是可以做到的还是我必须有文件存在才能注册它?谢谢。
干杯。
I'm looking into registering a directshow filter at runtime and probably need to use reflection to do this and then call regsvr32 somehow on binary data. Not sure if this is possible, sounds tricky. Basically I have a dll file that is a filter and I added it to the solution as an embedded resource but after this I'm stuck... not sure how to go about registering it. Does anybody have any insight? Is this possible to do or do I have to have the file existent to register it? Thanks.
Cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您确定需要注册吗?仅当您要参与
智能连接
时才需要这样做。否则,您可能只是LoadLibrary
DLL 并通过DllGetClassObject
创建过滤器的实例,绕过COM 实例化。好消息是,与注册过滤器 DLL 不同,您不必是具有提升权限的管理员即可执行此操作。另请参阅:
Are you sure you need to register it? You only need to do it if it is to participate in
Intelligent Connect
. Otherwise you might justLoadLibrary
the DLL and create an instance of the filter viaDllGetClassObject
bypassing COM instantiation. Good news you don't have to be administrator with elevated privileges to do this, as opposed to registering the filter DLL.Then see also: