IMFHttpDownloadRequest::EndReceiveResponse method (mfidl.h)

Invoked by Microsoft Media Foundation to complete the asynchronous operation started by BeginReceiveResponse.

Syntax

HRESULT EndReceiveResponse(
  [in] IMFAsyncResult *pResult
);

Parameters

[in] pResult

Pointer to the IMFAsyncResult interface. Microsoft Media Foundation will pass in the same pointer that its callback object received in the IMFAsyncCallback::Invoke method.

Return value

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

Return code Description
S_OK
Successfully received the HTTP response and associated headers.

Remarks

If the server failed the request but responded with a specific HTTP status code, the EndReceiveResponse should still return S_OK. Media Foundation will invoke the GetHttpStatus method to retrieve the HTTP status code.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header mfidl.h
Library Mfplat.lib; Mfplat.dll

See also

IMFHttpDownloadRequest