HttpEndRequestW function (wininet.h)
Ends an HTTP request that was initiated by HttpSendRequestEx.
Syntax
BOOL HttpEndRequestW(
[in] HINTERNET hRequest,
[out, optional] LPINTERNET_BUFFERSW lpBuffersOut,
[in] DWORD dwFlags,
[in, optional] DWORD_PTR dwContext
);
Parameters
[in] hRequest
Handle returned by HttpOpenRequest and sent by HttpSendRequestEx.
[out, optional] lpBuffersOut
This parameter is reserved and must be NULL.
[in] dwFlags
This parameter is reserved and must be set to 0.
[in, optional] dwContext
This parameter is reserved and must be set to 0.
Return value
If the function succeeds, the function returns TRUE.
If the function fails, it returns FALSE. To get extended error information, call GetLastError.
Remarks
If lpBuffersOut is not set to NULL, HttpEndRequest will return ERROR_INVALID_PARAMETER.
Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects.
Note
The wininet.h header defines HttpEndRequest as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wininet.h |
Library | Wininet.lib |
DLL | Wininet.dll |