利于Wininet创建一个FTP客户端的步骤

2020-12-02 04:46

阅读:571

创建Internet链接

HINTERNET InternetConnect( HINTERNET hInternet,       

                                          LPCTSTR lpszServerName,    

                                          INTERNET_PORT nServerPort, 

                                          LPCTSTR lpszUsername,         

                                         LPCTSTR lpszPassword,     

                                          DWORD dwService,           

                                          DWORD dwFlags,             

                                          DWORD_PTR dwContext );

hInternet是InternetOpen返回的句柄,

dwFlags表示链接的类型。

INTERNET_SERVICE_FTP:FTP链接;

INTERNET_SERVICE_HTTP:HTTP链接;

 


评论


亲,登录后才可以留言!