HttpEndRequest function
Applies to: desktop apps only
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.
Note WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | HttpEndRequestW (Unicode) and HttpEndRequestA (ANSI) |
See also
Send comments about this topic to Microsoft
Build date: 2/7/2012