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

MFCreateMFByteStreamWrapper function

Creates a wrapper for a byte stream.

Syntax


HRESULT MFCreateMFByteStreamWrapper(
  _In_ IMFByteStream *pStream,
  _In_ IMFByteStream **ppStreamWrapper
);

Parameters

pStream [in]

A pointer to the IMFByteStream interface of the original byte stream.

ppStreamWrapper [in]

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

Return value

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

Remarks

The IMFByteStream methods on the wrapper call directly through to the original byte stream, except for the IMFByteStream::Close method. Calling Close on the wrapper closes the wrapper object, but leaves the original byte stream open.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft