MFCreateMFByteStreamOnStream function (mfidl.h)

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

Syntax

HRESULT MFCreateMFByteStreamOnStream(
  [in]  IStream       *pStream,
  [out] IMFByteStream **ppByteStream
);

Parameters

[in] pStream

A pointer to the IStream interface.

[out] ppByteStream

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

Return value

Returns an HRESULT value.

Remarks

This function enables applications to pass an IStream object to a Media Foundation API that takes an IMFByteStream pointer.

Requirements

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

See also

Media Foundation Functions