Completes an asynchronous request to create a byte stream from a file.
HRESULT MFEndCreateFile(
IMFAsyncResult *pResult,
IMFByteStream **ppFile
)
pResult
Type: IMFAsyncResult *
Pointer to the IMFAsyncResult interface. Pass in the same pointer that your callback object received in the Invoke method.
ppFile
Type: IMFByteStream **
[out]
Receives a pointer to the IMFByteStream interface of the byte stream. The caller must release the interface.
Type: HRESULT
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The function succeeded. |
Refer to Media Foundation return codes.
Call this function when the MFBeginCreateFile function completes asynchronously.
Header: Declared in mfapi.h.
Library: Use mfplat.lib.