Moi je l'ai fais en Visual C++, mais C la même API, alors voici :
hInternetSession = InternetOpen("Microsoft Internet Explorer", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
if (hInternetSession == NULL)
// erreur
return TRUE
if ( !( hFTPSession = InternetConnect (hInternetSession,
"Adresse IP",
INTERNET_DEFAULT_FTP_PORT,
"login",
"Moit de passe",
INTERNET_SERVICE_FTP,
0,
0 ) ) )
{
return 1; // Erreur
}
Pour une aide très complète, (plus que le F1)
==> http://msdn.microsoft.com/library/ [...] ssions.asp
voilà, à+