MFCreateMFByteStreamWrapper function (mfapi.h)
Creates a wrapper for a byte stream.
Syntax
HRESULT MFCreateMFByteStreamWrapper(
[in] IMFByteStream *pStream,
[in] IMFByteStream **ppStreamWrapper
);
Parameters
[in] pStream
A pointer to the IMFByteStream interface of the original byte stream.
[in] ppStreamWrapper
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
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | mfapi.h |
Library | Mfplat.lib |
DLL | Mfplat.dll |