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.

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

See also

Media Foundation Functions

 

 

Show:
© 2017 Microsoft