MFCreateMFByteStreamOnStream

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

Syntax

HRESULT MFCreateMFByteStreamOnStream(
         IUnknown *punkStream,
         _Outptr_ IMFByteStream **ppByteStream
)  

Parameters

punkStream
Type: IUnknown *

A pointer to the IStream interface.

ppByteStream
Type: Outptr IMFByteStream **

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

Return value

Type: HRESULT 

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

Refer to Media Foundation return codes.

Remarks

For IStream implementation details, refer to IStream interface.

Requirements

Header: Declared in mfidl.h.

Library: Use Mfplat.lib.