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 |
|
|
Library |
|
|
DLL |
|
See also