WinInet Error Codes
The Microsoft Win32 Internet (WinInet) API provides stand-alone applications with easy access to standard Internet protocols such as FTP and HTTP.
The following is a list of error codes returned by the Microsoft Win32 Internet (WinInet) API functions. For more information, see the current MSDN documentation.
No more handles could be generated at this time.
The request has timed out.
An extended error was returned from the server. This is typically a string or buffer containing a verbose error message. Call InternetGetLastResponseInfo to retrieve the error text.
An internal error has occurred.
The URL is invalid.
The URL scheme could not be recognized or is not supported.
The server name could not be resolved.
The requested protocol could not be located.
A request to InternetQueryOption or InternetSetOption specified an invalid option value.
The length of an option supplied to InternetQueryOption or InternetSetOption is incorrect for the type of option specified.
The request option cannot be set, only queried.
The Win32 Internet function support is being shut down or unloaded.
The request to connect and log on to an FTP server could not be completed because the supplied user name is incorrect.
The request to connect and log on to an FTP server could not be completed because the supplied password is incorrect.
The request to connect to and log on to an FTP server failed.
The requested operation is invalid.
The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed.
The type of handle supplied is incorrect for this operation.
The requested operation cannot be carried out because the handle supplied is not in the correct state.
The request cannot be made via a proxy.
A required registry value could not be located.
A required registry value was located but is an incorrect type or has an invalid value.
Direct network access cannot be made at this time.
An asynchronous request could not be made because a zero context value was supplied.
An asynchronous request could not be made because a callback function has not been set.
The required operation could not be completed because one or more requests are pending.
The format of the request is invalid.
The requested item could not be located.
The attempt to connect to the server failed.
The connection with the server has been terminated.
The connection with the server has been reset.
Calls for the Win32 Internet function to redo the request.
The request failed because the handle already exists.
Indicates that the content is not entirely secure. Some of the content being viewed may have come from unsecured servers.
The requested operation cannot be made on the FTP session handle because an operation is already in progress.
The FTP operation was not completed because the session was aborted.
The requested header could not be located.
The server did not return any headers.
The server response could not be parsed.
The supplied header is invalid.
The request made to HttpQueryInfo is invalid.
The header could not be added because it already exists.