HttpSendDataResponseNoCopy

Sends data to a client without copying the data to a local buffer.

Syntax

    #include <httpexp.h>
    
    int HttpSendDataResponseNoCopy (
       HINTERNET   hRequest,
       void       *pBuffer,
       UINT32      szBuffer);
    

Parameters

hRequest
(IN) Specifies the HTTP stack handle.
pBuffer
(IN) Points to the buffer containing the data to send.
szBuffer
(IN) Specifies the size of the data buffer.

Return Values

If successful, returns 0. Otherwise, returns a nonzero error code.

Decimal

Name

Description

168

ERR_ACCESS_DENIED

The HttpSendResponseHeader must be completed before data functions are used.

255

ERR_BAD_PARAMETER

Invalid handle.

Remarks

The HttpSendDataResponseNoCopy function is similar to the HttpSendDataResponse function but it does not copy the user's data to the local buffer before transmitting it. Because the data is not copied to the local buffer, this function should only be used when large amounts of data (over 4096 bytes per call) are being sent.

See Also