Receives a pointer to the IMFByteStream interface of the byte stream. 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 creates a file in the system temporary folder, and then returns a byte stream object for that file.
The full path name of the file is storted in the MF_BYTESTREAM_ORIGIN_NAME attribute. The file is created with the FILE_FLAG_DELETE_ON_CLOSE flag, and is deleted after the byte stream is released.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed: