Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFCreateSimpleTypeHandler function

Creates a media-type handler that supports a single media type at a time.

Syntax


HRESULT MFCreateSimpleTypeHandler(
  _Out_ IMFMediaTypeHandler **ppHandler
);

Parameters

ppHandler [out]

Receives a pointer to the IMFMediaTypeHandler interface of the media-type handler. The caller must release the interface.

Return value

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

 

Remarks

The media-type handler created by this function supports one media type at a time. Set the media type by calling IMFMediaTypeHandler::SetCurrentMediaType. After the type is set, IMFMediaTypeHandler::IsMediaTypeSupported always checks against that type.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfidl.h

Library

Mf.lib

DLL

Mf.dll

See also

Media Foundation Functions

 

 

Show:
© 2017 Microsoft