IWinHttpRequestEvents::OnResponseDataAvailable event

The OnResponseDataAvailable event occurs when data is available from the response.

Syntax

void OnResponseDataAvailable(
  [in] SAFEARRAY(unsigned char) *Data
);

Parameters

Data [in]

A zero-based array of bytes that receives the response data received by Microsoft Windows HTTP Services (WinHTTP) up to the point that this event occurs. This is a VARIANT of type VT_ARRAY | VT_UI1.

Return value

This event does not return a value.

Remarks

Because data is in bytes, it must be converted to wide characters when placed in a wide character (Unicode) string.

Note

For Windows XP and Windows 2000, see the Run-Time Requirements section of the WinHTTP Start Page.

Requirements

Requirement Value
Minimum supported client
Windows XP, Windows 2000 Professional with SP3 [desktop apps only]
Minimum supported server
Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]
Redistributable
WinHTTP 5.0 and Internet Explorer 5.01 or later on Windows XP and Windows 2000.
IDL
HttpRequest.idl

See also

IWinHttpRequestEvents

WinHttpRequest

WinHTTP Versions