www.pudn.com > NetPaw.rar > NetPaw.h


// NetPaw.h : NetPaw 应用程序的主头文件 
// 
#pragma once 
 
#ifndef __AFXWIN_H__ 
	#error 在包含用于 PCH 的此文件之前包含“stdafx.h”  
#endif 
 
#include "resource.h"       // 主符号 
#include "registry.h" 
#include ".\npcapture\filemapping.h" 
 
// default file save path 
#define DEFAULT_PATH  "\\downloads" 
#define DEFAULT_CONNS 5 // 5 sockets for a file 
 
 
struct URLDATA_S 
{ 
	TCHAR szDownldUrl[MAX_PATH]; 
	TCHAR szReferer[MAX_PATH]; 
	TCHAR szWebInfo[MAX_PATH/2]; 
}; 
 
// CNetPawApp: 
// 有关此类的实现,请参阅 NetPaw.cpp 
// 
class CNetPawApp : public CWinApp 
{ 
public: 
	CNetPawApp(); 
 
// 重写 
public: 
	virtual BOOL InitInstance(); 
	virtual int ExitInstance(); 
 
// 实现 
	afx_msg void OnAppAbout(); 
	DECLARE_MESSAGE_MAP() 
 
protected: 
	CRegistry m_Registry; 
	CFileMapping m_obFileMapping; 
	HANDLE m_hShutEvent; 
	HANDLE m_hBhoEvent; 
	CWinThread* m_pBhoEvtThread; 
 
public: 
	CString m_sSavePath; 
	long m_nConnections; 
 
	void GetLastDrive(CString &sLastDrive); 
	void LoadSettings(void); 
	void SaveSettings(void); 
	void DownloadIEUrl(); 
	static UINT ThreadProc(PVOID pParam); 
}; 
 
extern CNetPawApp theApp;