none
How Get Filter's FriendlyName from The Filter (directshow) RRS feed

  • 问题

  • Hi all,

      I have a question, need help.

      I have a source Filter Code,  this register more Virtual source(By IFilterMapper2::RegisterFilter), then them have the same CLSID ,different FriendlyName .

      how to get FirendlyName by Filter's Code

    2017年3月27日 9:14

答案

  • Hi fengshanX,

    感谢在MSDN论坛发帖。

    >>Thanks for helping, I have seen this info, I want to get FriendlyName From the Filter's object. The Filter Code include register more Source Filter, but have the same CLSID

    要获取设备的friendly name(例如,要在用户界面中显示),请调用IMoniker :: BindToStorage方法。

    这里有篇示例你可以参考一下。

    https://msdn.microsoft.com/en-us/library/windows/desktop/dd407292(v=vs.85).aspx

    或者你也可以使用IBaseFilter::QueryFilterInfo方法。

    希望对你有所帮助。、

    Best Regards,

    Sera Yu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • 已建议为答案 Baron Bi 2017年4月10日 6:23
    • 已标记为答案 fengshanX 2017年4月14日 10:45
    2017年4月6日 8:41

全部回复