Group: Internet Functions (WinInet) - Library: wininet
Retrieves the last Microsoft® Win32® Internet function error description or server response on the thread calling this function.
Using FtpCommand
Wininet last error description
BOOL InternetGetLastResponseInfo(
LPDWORD lpdwError,
LPTSTR lpszBuffer,
LPDWORD lpdwBufferLength
);
DECLARE SHORT InternetGetLastResponseInfo IN wininet;
INTEGER @ lpdwError,;
STRING @ lpszBuffer,;
INTEGER @ lpdwBufferLength
lpdwError [out] Pointer to an unsigned long integer 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 an unsigned long integer variable that contains the size of the lpszBuffer buffer in TCHARs.
Returns TRUE if error text was successfully written to the buffer, or FALSE otherwise.