如何找到用于创建源过滤器的IMoniker? [英] How to find the IMoniker used to create a source filter?

查看:314
本文介绍了如何找到用于创建源过滤器的IMoniker?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在写一个基于DirectShow的应用程序,能帮助用户在配置自己的电视采集卡,因为GraphEdit中似乎太难最了解。这个想法是,本申请中导出所生成的图形到 .GRF文件 ,这将在另一应用程序中使用。

Currently I'm writing a DirectShow based application that should help users configuring their TV capture cards, since GraphEdit seems to be too difficult for most to understand. The idea is that this application exports the generated Graph to a .GRF file, that will be used in another application.

用户可以选择的设备(的的IMoniker 的)应该被用于创建源滤波器,并且可以改变关于视频/音频的某些设置。

Users can select which device (IMoniker) should be used to create a source filter, and can change some settings regarding video / audio.

下一步出口.GRF文件,我的应用程序也应该有这种文件导入该功能。我的问题是:我怎么觉得有什么绰号/设备被用于在导入图形创建源过滤器

Next to exporting .GRF files, my application should also have the feature to import such files. My question is: how do I find what moniker / device was used to create the source filter in the imported graph?

我试图创建源过滤器的列表对所有连接的设备,和比较那些在导入图形源过滤器,但是这似乎并没有工作。

I tried creating a list of source filters for all connected devices, and comparing those to the source filter in the imported graph, but that did not seem to work.

推荐答案

您不能告诉从创建的实例绰号。为了绰号进行区分,并且能够找到你需要的人,用他们的的IMoniker :: GetDisplayName 字符串作为一个唯一的标识符持续

You cannot tell moniker from created instance. To distinguish between monikers and be able to find the one you need, use their IMoniker::GetDisplayName string as a unique persistent identifier.

这篇关于如何找到用于创建源过滤器的IMoniker?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆