testBT.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:
P2P编程
开发平台:
Visual C++
- // testBT.h : main header file for the TESTBT application
- //
- #if !defined(AFX_TESTBT_H__F2118822_4316_4F5E_9894_70A03E7F034C__INCLUDED_)
- #define AFX_TESTBT_H__F2118822_4316_4F5E_9894_70A03E7F034C__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
- #include "resource.h" // main symbols
- #include "common.h"
- class CEncryptedConnection;
- void ShowMessage(CEncryptedConnection* psocket, string strMsg);
- // enum eOperation {activity, fractionDone};
- // void StatusFunc(eOperation oper, _variant_t vVal);
- // void Finished();
- // void Failed(string e);
- // void data_flunked();
- // void errorFunc(string e);
- /////////////////////////////////////////////////////////////////////////////
- // CTestBTApp:
- // See testBT.cpp for the implementation of this class
- //
- class DbgGuiLeak
- {
- public:
- explicit DbgGuiLeak ();
- ~DbgGuiLeak ();
- static void Init();
- static void Exit();
- private:
- typedef int (CALLBACK * GETGUIRESOURCES_PROC)(HANDLE, DWORD);
- static HMODULE m_hUser32;
- static GETGUIRESOURCES_PROC m_pfnGetGuiResources;
- unsigned _guiResCount;
- };
- int AfxMessageBoxEx(LPCTSTR lpszText, UINT nType = MB_OK);
- #define AfxMessageBox AfxMessageBoxEx
- class CTestBTApp : public CWinApp
- {
- public:
- CTestBTApp();
- ~CTestBTApp();
- CFrameWnd* m_pMainFrame;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTestBTApp)
- public:
- virtual BOOL InitInstance();
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- virtual CDocument* OpenDocumentFile(LPCTSTR lpszFileName);
- //}}AFX_VIRTUAL
- // Implementation
- //{{AFX_MSG(CTestBTApp)
- afx_msg void OnAppAbout();
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void MakeTorrent(CString strFilePath);
- UINT m_uUserMessage;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TESTBT_H__F2118822_4316_4F5E_9894_70A03E7F034C__INCLUDED_)