Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.