Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MFCreateStreamOnMFByteStream
Collapse the table of content
Expand the table of content

MFCreateStreamOnMFByteStream function

Returns an IStream pointer that wraps a Microsoft Media Foundation byte stream.

Syntax


HRESULT MFCreateStreamOnMFByteStream(
  _In_  IMFByteStream *pByteStream,
  _Out_ IStream       **ppStream
);

Parameters

pByteStream [in]

A pointer to the IMFByteStream interface of the Media Foundation byte stream.

ppStream [out]

Receives a pointer to the IStream interface. The caller must release the interface.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This function enables an application to pass a Media Foundation byte stream to an API that takes an IStream pointer.

Windows Phone 8: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfidl.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

MFCreateMFByteStreamOnStream

 

 

Community Additions

ADD
Show:
© 2015 Microsoft