InternetGetLastResponseInfo
Jump to navigation
Jump to search
Description
Retrieves the last error description or server response on the thread calling this function.
Syntax
BOOL InternetGetLastResponseInfo(
_Out_ LPDWORD lpdwError,
_Out_ LPTSTR lpszBuffer,
_Inout_ LPDWORD lpdwBufferLength
);
Parameters
- lpdwError [out]
- Pointer to a variable that receives an error message pertaining to the operation that failed.
- lpszBuffer [out]
- Pointer to a buffer that receives the error text.
- lpdwBufferLength [in, out]
- Pointer to a variable that contains the size of the lpszBuffer buffer, in TCHARs. When the function returns, this parameter contains the size of the string written to the buffer, not including the terminating zero.
Return value
Returns TRUE if error text was successfully written to the buffer, or FALSE otherwise. To get extended error information, call GetLastError. If the buffer is too small to hold all the error text, GetLastError returns ERROR_INSUFFICIENT_BUFFER, and the lpdwBufferLength parameter contains the minimum buffer size required to return all the error text.