简体   繁体   中英

Finding a filter's DirectShow category

Given a filter or a hardware device or its moniker, how can I find out what DirectShow category that filter or hardware device belongs to? Is there some kind of a "Category" property somewhere in the PropertyBag?

DirectShow categories contain filter registration information in terms that it is possible to create a monitor out of registration entry. Once moniker is created you don't yet have a filter but category information is already gone at this point. Creating an instance of filter from moniker obviously does not get you category back.

Also it is possible to have one filter regisered in multiple categories, and it is also possible to register a [third party] filter into a category without filter being aware of it at all.

So, no, you cannot find out filter's category when you have a filter. Sometimes you can get CLSID from instance and match it back by enumerating a categories, but even this would not work for every filter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM