Skip to content

Latest commit

 

History

History
72 lines (58 loc) · 3.31 KB

nn-strmif-ienummediatypes.md

File metadata and controls

72 lines (58 loc) · 3.31 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NN:strmif.IEnumMediaTypes
IEnumMediaTypes (strmif.h)
The IEnumMediaTypes interface enumerates a pin's preferred media types.
IEnumMediaTypes
IEnumMediaTypes interface [DirectShow]
IEnumMediaTypes interface [DirectShow]
described
IEnumMediaTypesInterface
dshow.ienummediatypes
strmif/IEnumMediaTypes
dshow\ienummediatypes.htm
dshow
e0021e27-0e08-4d07-9610-08a9b945ae34
4/26/2023
IEnumMediaTypes, IEnumMediaTypes interface [DirectShow], IEnumMediaTypes interface [DirectShow],described, IEnumMediaTypesInterface, dshow.ienummediatypes, strmif/IEnumMediaTypes
strmif.h
Dshow.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Strmiids.lib
Windows
19H1
IEnumMediaTypes
strmif/IEnumMediaTypes
c++
APIRef
kbSyntax
COM
Strmiids.lib
Strmiids.dll
IEnumMediaTypes

IEnumMediaTypes interface

-description

[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 IEnumMediaTypes interface enumerates a pin's preferred media types. To obtain this interface, call the IPin::EnumMediaTypes method on the pin. Filters use this interface when they connect to other filters. Applications can also use it to examine a pin's preferred media types. For more information, see Enumerating Objects in a Filter Graph.

This interface implements a standard Component Object Model (COM) collection object.

If a pin's set of preferred media types changes, some methods on this interface return VFW_E_ENUM_OUT_OF_SYNC. Call the IEnumMediaTypes::Reset method to resynchronize the enumerator.

-inheritance

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

-see-also

Enumerating Media Types

Interfaces