IMFMediaTypeHandler interface (mfidl.h)

Gets and sets media types on an object, such as a media source or media sink.


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


The IMFMediaTypeHandler interface has these methods.


Retrieves the current media type of the object.

Gets the major media type of the object.

Retrieves a media type from the object's list of supported media types.

Retrieves the number of media types in the object's list of supported media types.

Queries whether the object supports a specified media type.

Sets the object's media type.


This interface is exposed by media-type handlers.

If you are implementing a custom media source or media sink, you can create a simple media-type handler by calling MFCreateSimpleTypeHandler, or you can provide your own implementation.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows XP with Service Pack 2 (SP2) and later.
  • Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (October 2006 Update Rollup for Windows XP Media Center Edition) installed.


Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h

See also

Media Foundation Interfaces

Media Types

Presentation Descriptors