MFCreateStreamOnMFByteStream function (mfidl.h)

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

Syntax

HRESULT MFCreateStreamOnMFByteStream(
  [in]  IMFByteStream *pByteStream,
  [out] IStream       **ppStream
);

Parameters

[in] pByteStream

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

[out] ppStream

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.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfplat.lib
DLL Mfplat.dll

See also

MFCreateMFByteStreamOnStream

Media Foundation Functions