ftp.h

来自「电子监控的网络编程实例」· C头文件 代码 · 共 43 行

H
43
字号
/////////////////////////////////////////////////////////////////////////////
// CMyAppThread thread
#include <afxinet.h>
class CMyAppThread : public CWinThread
{
	DECLARE_DYNCREATE(CMyAppThread)
protected:
	CMyAppThread();           // protected constructor used by dynamic creation
	
	// Attributes
public:
	
	// Operations
public:
	static UINT RenameFileThread(LPVOID lParam);
	static UINT DeleteFileThread(LPVOID lParam);
	static UINT ReceiveFileThread(LPVOID lParam);
	static UINT SendFileThread(LPVOID lParam);
	static UINT FindLocFileThread(LPVOID lParam);
	static UINT FindServFileThread(LPVOID lParam);
protected:
	static BOOL PreDeleteFile(HINTERNET hInetSession,CString& strFtp,CString& OldDir);
	static BOOL PreReceiveFile(HINTERNET hInetSession,CString& str,CString& strFtp,LPVOID pInf);
	static BOOL PreSendFile(CFtpConnection* lpFtp,CString& str,CString& strFtp,LPVOID pInf);
	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyAppThread)
public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL
	
	// Implementation
protected:
	virtual ~CMyAppThread();
	
	// Generated message map functions
	//{{AFX_MSG(CMyAppThread)
	// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	
	DECLARE_MESSAGE_MAP()
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?