Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Minimum supported phone

Windows Phone 8

Header

Mfidl.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions
MFCreateMFByteStreamOnStream

 

 

Show:
© 2017 Microsoft