📄 ftpdll.h
字号:
// 下列 ifdef 块是创建使从 DLL 导出更简单的
// 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 FTPDLL_EXPORTS
// 符号编译的。在使用此 DLL 的
// 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
// FTPDLL_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
// 符号视为是被导出的。
#define FTPDLL_EXPORTS
#ifdef FTPDLL_EXPORTS
#define FTPDLL_API __declspec(dllexport)
#else
#define FTPDLL_API __declspec(dllimport)
#endif
#include "FTPclient.h"
// 此类是从 FtpDll.dll 导出的
class FTPDLL_API CFtpDll {
public:
CFtpDll(void);
// TODO: 在此添加您的方法。
private:
};
nsFTP::CLogonInfo m_LogonInfo;
nsFTP::CFTPClient *m_FTPClient;
extern "C" FTPDLL_API bool SetHostInfo(wchar_t* lpHostName,int nHostPort,wchar_t* lpUsername, wchar_t* lpPwd, wchar_t* lpAccount);
extern "C" FTPDLL_API bool SetFirewallInfo(wchar_t* lpFwHostName,wchar_t* lpFwUsername,wchar_t* lpFwPwd, int nFwHostPort);
extern "C" FTPDLL_API bool LoginHost(void);
extern "C" FTPDLL_API bool GetHostFileAndFolderList(wchar_t* lpRemoteFolder, wchar_t* lpFileAndFolder);
extern "C" FTPDLL_API bool Upload(wchar_t* lpLocalFile, wchar_t* lpRemoteFile);
extern "C" FTPDLL_API bool DownLoad(wchar_t* lpLocalFile, wchar_t* lpRemoteFile);
extern "C" FTPDLL_API bool FreeBuffer(void);
extern "C" FTPDLL_API bool GetVersion(wchar_t* lpVersion);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -