Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft