123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- // AutoRunDlg.h : header file
- //
- #if !defined(AFX_AutoRunDLG_H__06D6A3BF_D3AD_402D_802F_E81418C60ED7__INCLUDED_)
- #define AFX_AutoRunDLG_H__06D6A3BF_D3AD_402D_802F_E81418C60ED7__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CAutoRunDlg dialog
- #include "ClientTunnel.h"
- class CAutoRunDlg : public CDialog
- {
- // Construction
- public:
- void Test_Connect_LocalServer();
- void TestFTPSend();
- void TestFTP();
- int GetPort();
- BOOL OnConnect3();
- BOOL OnConnect2();
- bool m_bRunning; // Flag to whether thread is on running or not
- bool m_bTerminate; // Flag to Thread to be terminated
- unsigned int m_dwThreadID; // Thread ID
- HANDLE m_hThread; // Thread and Event handle
- CAutoRunDlg(CWnd* pParent = NULL); // standard constructor
- void OnDisconnect();
- BOOL OnConnectRemoteServer();
- BOOL TerminateThread();
- DWORD GetConnectionID();
- void SetConnectionID(DWORD dwConnection);
- void ProcessChatMessageRequest2(CString sql);
- void ProcessChatMessageRequest2(BYTE *pData, int length);
- BOOL ProcessChatMessageRequest(void *szDataBuf, int nDataLen);
- void ProcessChatMessageResponse(void *pResponse);
- void ProcessLoginResponse(void *pLoginResult);
- BOOL ProcessLoginRequest();
- void ProcessNetEvent(int nEventType, void *pRecvMsg, DWORD dwDataLen);
- CClientTunnel m_tClientTunnel;
- DWORD m_dwConnectionID;
- // Dialog Data
- //{{AFX_DATA(CAutoRunDlg)
- enum { IDD = IDD_AutoRun_DIALOG };
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CAutoRunDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- int m_hsock;
- // Generated message map functions
- //{{AFX_MSG(CAutoRunDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnDestroy();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnClose();
- //}}AFX_MSG
- LRESULT OnTrayNotification(WPARAM wParam, LPARAM lParam);
- LRESULT OnAbortClose(WPARAM wParam, LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_AutoRunDLG_H__06D6A3BF_D3AD_402D_802F_E81418C60ED7__INCLUDED_)
|