MFEndCreateFile

Completes an asynchronous request to create a byte stream from a file.

Syntax

HRESULT MFEndCreateFile(
         IMFAsyncResult *pResult,
         IMFByteStream **ppFile
)  

Parameters

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.

Return value

Type: HRESULT 

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The function succeeded.

Refer to Media Foundation return codes.

Remarks

Call this function when the MFBeginCreateFile function completes asynchronously.

Requirements

Header: Declared in mfapi.h.

Library: Use mfplat.lib.