首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

急这两个FTP API函数的用法解决办法

2012-01-24 
急,这两个FTP API函数的用法FTPSetCurrentDirectoryFTPOpenFile这两个函数的参数,返回值都是什么,请朋友们

急,这两个FTP API函数的用法
FTPSetCurrentDirectory

FTPOpenFile
这两个函数的参数,返回值都是什么,请朋友们详细说明一下,谢谢

[解决办法]
hConnect
[in] Handle to an FTP session.
FTP会话的句柄。
LPCTSTR lpszDirectory
你想设置当前目录的路径。
[解决办法]
BOOL 型
真为成功假为失败。
[解决办法]
hConnect
[in] Handle to an FTP session.
FTP会话的句柄。
lpszFileName
[in] Pointer to a null-terminated string that contains the name of the file to be accessed.
你要访问的文件名。
dwAccess
[in] File access. This parameter can be GENERIC_READ or GENERIC_WRITE, but not both.
文件访问权限,GENERIC_READ 为读,GENERIC_WRITE为写,不能一起使用。
dwFlags
[in] Conditions under which the transfers occur. The application should select one transfer type and any of the flags that indicate how the caching of the file will be controlled.
传输文件所使用的类型标识。
dwContext
[in] Pointer to a variable that contains the application-defined value that associates this search with any application data. This is only used if the application has already called InternetSetStatusCallback to set up a status callback function.
指向一个程序自己定义的一个变量,只有你调用了InternetSetStatusCallback函数才使用。可为空。
Return Values
Returns a handle if successful, or NULL otherwise. To retrieve a specific error message, call GetLastError.
如果成功返回句柄,失败返回空。

热点排行