IMFHttpDownloadRequest::BeginReceiveResponse method (mfidl.h)

Invoked by Microsoft Media Foundation to receive the response, provided by the server, in response to a previously sent HTTP or HTTPS request. Media Foundation invokes this method only after having successfully invoked the EndSendRequest method.

Syntax

HRESULT BeginReceiveResponse(
  [in] IMFAsyncCallback *pCallback,
       IUnknown         *punkState
);

Parameters

[in] pCallback

Pointer to the IMFAsyncCallback interface of a callback object that is implemented by Microsoft Media Foundation.

punkState

Pointer to the IUnknown interface of a state object, defined by Microsoft Media Foundation. This parameter can be NULL.

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 started the asynchronous operation.

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