ICreateDevEnum interface (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The ICreateDevEnum interface creates an enumerator for a category of filters, such as video capture devices or audio capture devices. The System Device Enumerator exposes this interface.

Applications can use this interface to enumerate filters within a category. The CreateClassEnumerator method returns an enumerator object for a specific filter category. The enumerator object supports the IEnumMoniker interface and returns a list of monikers, where each moniker represents a filter.

In some cases, the same DirectShow filter manages an entire category of hardware devices. In that case, the moniker represents the device, and the moniker is used to initialize the filter. The application can treat each device as a separate filter, regardless of the underlying implementation.

For more information on using this interface, see Using the System Device Enumerator.

Inheritance

The ICreateDevEnum interface inherits from the IUnknown interface. ICreateDevEnum also has these types of members:

Methods

The ICreateDevEnum interface has these methods.

 
ICreateDevEnum::CreateClassEnumerator

The CreateClassEnumerator method creates an enumerator for a specified device category.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)

See also

Interfaces

Using the System Device Enumerator