MFEndCreateFile function (mfapi.h)

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

Syntax

HRESULT MFEndCreateFile(
  [in]  IMFAsyncResult *pResult,
  [out] IMFByteStream  **ppFile
);

Parameters

[in] pResult

Pointer to the IMFAsyncResult interface. Pass in the same pointer that your callback object received in the Invoke method.

[out] ppFile

Receives a pointer to the IMFByteStream interface of the byte stream. The caller must release the interface.

Return value

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.

Remarks

Call this function when the MFBeginCreateFile function completes asynchronously.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfapi.h
Library Mfplat.lib
DLL Mfplat.dll

See also

MFBeginCreateFile

Media Foundation Functions