MFCreateStreamOnMFByteStreamEx function (mfidl.h)
Creates an IRandomAccessStream object that wraps a Microsoft Media Foundation byte stream.
Syntax
HRESULT MFCreateStreamOnMFByteStreamEx(
[in] IMFByteStream *pByteStream,
[in] REFIID riid,
[out] void **ppv
);
Parameters
[in] pByteStream
A pointer to the IMFByteStream interface of the Media Foundation byte stream.
[in] riid
The interface identifier (IID) of the interface being requested.
[out] ppv
Receives a pointer to the requested 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
The returned byte stream object exposes the IMFGetService interface. To get the original IMFByteStream pointer, call IMFGetService::GetService using the service identifier MF_WRAPPED_OBJECT.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | mfidl.h |
Library | Mfplat.lib |
DLL | Mfplat.dll |