win32 api简易实现ftp文件上传

  • 时间:
  • 来源:互联网
  • 文章标签:
HINTERNET hintInternetOpen = InternetOpen("Testing", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
auto nCount = 0;
TEST://重连 
HINTERNET    hConnect =InternetConnect(hintInternetOpen, "111.113.117.51", 19209, "test", "yx_2.3x", INTERNET_SERVICE_FTP, 134217728, 0);
if (!hConnect&&nCount<4)
{
	nCount++;
	goto TEST;
}
FtpPutFile(hConnect, "d:/uidemo08.zip", "/FTP/uidemo08.zip", INTERNET_FLAG_TRANSFER_BINARY, 0);

 

本文链接http://www.taodudu.cc/news/show-647721.html