Microsoft DirectX 8.1 (C++) |
Most of the time, you don't have to worry about individual filters and pins, because a Microsoft® DirectShow® application can simply call methods on the Filter Graph Manager. Occasionally, however, you will need to locate a particular filter in the graph or even a particular pin on a filter. For example, your application might use a custom interface that a filter exposes, in order to set properties on the filter. Or, you might construct a specialized filter graph by hand and need to call methods on individual pins to connect the filters. For this purpose, DirectShow provides several methods for enumerating objects in a filter graph.
The enumerators discussed in this section follow the standard form used by COM enumeration interfaces. For more information, see the IEnumXXXX topic in the Platform SDK. For information on enumerating filters that are registered on the user's computer, but aren't yet in the filter graph, see Enumerating Devices and Filters.
This article contains the following topics: