HttpEndRequest function
Ends an HTTP request that was initiated by HttpSendRequestEx.
Syntax
BOOL HttpEndRequest( _In_ HINTERNET hRequest, _Out_opt_ LPINTERNET_BUFFERS lpBuffersOut, _In_ DWORD dwFlags, _In_opt_ DWORD_PTR dwContext );
Parameters
- hRequest [in]
-
Handle returned by HttpOpenRequest and sent by HttpSendRequestEx.
- lpBuffersOut [out, optional]
-
This parameter is reserved and must be NULL.
- dwFlags [in]
-
This parameter is reserved and must be set to 0.
- dwContext [in, optional]
-
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.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
HttpEndRequestW (Unicode) and HttpEndRequestA (ANSI) |
See also