ThreadManager.h
资源名称:FindMail.zip [点击查看]
上传用户:feituo2008
上传日期:2013-02-02
资源大小:493k
文件大小:1k
源码类别:
Email客户端
开发平台:
Visual C++
- #pragma once
- #include "findmailthread.h"
- #include <ras.h>
- class CThreadManager
- {
- public:
- CThreadManager(void);
- ~CThreadManager(void);
- char m_stat_file[128];
- char m_dict_file[128];
- int m_thread_count, m_max_thread_count, m_min_thread_num;
- CFindMailThread *m_pThreads;
- int Init(char *domain_name, char *mx_server, char *dial_name =NULL, int max_thread_count=1, int thread_count=1, int min_thread_num=0, char * stat_file=NULL, char * dict_file=NULL);
- int Start(int f_continue_prev=false);
- int Stop(void);
- int *m_pstart_pos;
- int ReadStatFile(void);
- int SaveStatFile(void);
- char m_domain_name[64];
- char m_mx_server[64];
- char m_outfile_exist[128], m_outfile_nonexist[128];
- HANDLE m_hThreadCheckStat;
- FILE *m_fp_stat;
- int m_f_stop;
- int m_dict_lines_count;
- char **m_pdict_buf;
- HRASCONN m_hRasConn;
- int RunDial(void);
- int RunHangUp(void);
- char m_dial_name[100];
- };