Hi Thomas,
Fist you should get API error using the GetLastError() function. If the error returned is ERROR_INTERNET_EXTENDED_ERROR (12003) than you can retrieve extended error information using the InternetGetLastResponseInfo function.
>
>I tried the Internetgetlastresponseinfo-function in WinInet.dll and am not sure what I am doing wrong. I open a ftp-connection with a wrong password-parameter to cause an error to happen. But although I do not get an ftp-connection-handle (which is right because of the wrong password) I do not get an erros code when I try to determine the error with Internetgetlastresponde-Info. Can anybody tell me what I might be doing wrong?
>
>Thanks in advance
>
>
--sb--