AutoRunDlg.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // AutoRunDlg.h : header file
  2. //
  3. #if !defined(AFX_AutoRunDLG_H__06D6A3BF_D3AD_402D_802F_E81418C60ED7__INCLUDED_)
  4. #define AFX_AutoRunDLG_H__06D6A3BF_D3AD_402D_802F_E81418C60ED7__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CAutoRunDlg dialog
  10. #include "ClientTunnel.h"
  11. class CAutoRunDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. void Test_Connect_LocalServer();
  16. void TestFTPSend();
  17. void TestFTP();
  18. int GetPort();
  19. BOOL OnConnect3();
  20. BOOL OnConnect2();
  21. bool m_bRunning; // Flag to whether thread is on running or not
  22. bool m_bTerminate; // Flag to Thread to be terminated
  23. unsigned int m_dwThreadID; // Thread ID
  24. HANDLE m_hThread; // Thread and Event handle
  25. CAutoRunDlg(CWnd* pParent = NULL); // standard constructor
  26. void OnDisconnect();
  27. BOOL OnConnectRemoteServer();
  28. BOOL TerminateThread();
  29. DWORD GetConnectionID();
  30. void SetConnectionID(DWORD dwConnection);
  31. void ProcessChatMessageRequest2(CString sql);
  32. void ProcessChatMessageRequest2(BYTE *pData, int length);
  33. BOOL ProcessChatMessageRequest(void *szDataBuf, int nDataLen);
  34. void ProcessChatMessageResponse(void *pResponse);
  35. void ProcessLoginResponse(void *pLoginResult);
  36. BOOL ProcessLoginRequest();
  37. void ProcessNetEvent(int nEventType, void *pRecvMsg, DWORD dwDataLen);
  38. CClientTunnel m_tClientTunnel;
  39. DWORD m_dwConnectionID;
  40. // Dialog Data
  41. //{{AFX_DATA(CAutoRunDlg)
  42. enum { IDD = IDD_AutoRun_DIALOG };
  43. //}}AFX_DATA
  44. // ClassWizard generated virtual function overrides
  45. //{{AFX_VIRTUAL(CAutoRunDlg)
  46. protected:
  47. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. protected:
  51. HICON m_hIcon;
  52. int m_hsock;
  53. // Generated message map functions
  54. //{{AFX_MSG(CAutoRunDlg)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnPaint();
  57. afx_msg HCURSOR OnQueryDragIcon();
  58. afx_msg void OnDestroy();
  59. afx_msg void OnTimer(UINT nIDEvent);
  60. afx_msg void OnClose();
  61. //}}AFX_MSG
  62. LRESULT OnTrayNotification(WPARAM wParam, LPARAM lParam);
  63. LRESULT OnAbortClose(WPARAM wParam, LPARAM lParam);
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_AutoRunDLG_H__06D6A3BF_D3AD_402D_802F_E81418C60ED7__INCLUDED_)