158 lines
5.7 KiB
C
158 lines
5.7 KiB
C
// stdafx.h : include file for standard system include files,
|
||
// or project specific include files that are used frequently, but
|
||
// are changed infrequently
|
||
//
|
||
|
||
#if !defined(AFX_STDAFX_H__DE43A14C_D8D5_498F_AA94_3F995CDE6728__INCLUDED_)
|
||
#define AFX_STDAFX_H__DE43A14C_D8D5_498F_AA94_3F995CDE6728__INCLUDED_
|
||
|
||
#if _MSC_VER > 1000
|
||
#pragma once
|
||
#endif // _MSC_VER > 1000
|
||
|
||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||
|
||
|
||
|
||
#define _CRT_SECURE_NO_WARNINGS //防止Warnings出现
|
||
#define _CRT_NON_CONFORMING_SWPRINTFS //防止Warnings出现
|
||
|
||
|
||
#include <afxwin.h> // MFC core and standard components
|
||
#include <afxext.h> // MFC extensions
|
||
#include <afxdisp.h> // MFC Automation classes
|
||
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
|
||
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||
#include <afxcmn.h> // MFC support for Windows Common Controls
|
||
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||
|
||
#include <afxsock.h> // MFC socket extensions
|
||
#include <afxcview.h>
|
||
#include <AfxTempl.h>
|
||
#include <atlconv.h>
|
||
#include <MsHTML.h>
|
||
#include <afxhtml.h>
|
||
|
||
#include <afxinet.h>
|
||
#pragma comment(lib, "wininet.lib")
|
||
|
||
//#define SMSMANAGER_KF //是否为客服(值守)系统
|
||
|
||
//以下三选一
|
||
#define SMSCENTER_ONE //第一短信平台
|
||
//#define SMSCENTER_TWO //第二短信平台
|
||
//#define SMSCENTER_THREE //第二短信平台
|
||
//#define SMSCENTER_TZY //团中央短信平台
|
||
//#define SMSCENTER_ADC //第三(ADC)短信平台
|
||
//#define SMSCENTER_NX //农信短信平台
|
||
//#define SMSCENTER_GDDX //广东电信的平台,建立在农信平台基础之中,必须要SMSCENTER_NX与SMSCENTER_GDDX一起
|
||
//#define SMSCENTER_IMUSIC //爱音乐版本
|
||
//#define SMSCENTER_DGSB //东莞社保版本
|
||
// #define SMSCENTER_DGSB_FIVE //五所特殊改名称版本
|
||
// #define SMSCENTER_DGSB_SGYD //韶关移动特殊改名称版本
|
||
// #define SMSCENTER_GDYD_ADC //广东电信下的adc版,用于测试。
|
||
|
||
#include "..\public\LuTool.h"
|
||
#include "..\public\ado\ado.h"
|
||
#include "..\public\des\des.h"
|
||
#include "..\public\CorpSms.h"
|
||
#include "..\public\PictureEx\PictureEx.h"
|
||
#include "..\Public\Print\PrnFrm.h"
|
||
#include "..\public\CSpreadSheet\SpreadSheet.h"
|
||
#include "..\public\SendPub.h"
|
||
|
||
|
||
#ifdef SMSCENTER_ADC
|
||
#define DEFAULT_SERVERPORT 2037 //默认的帧听端口
|
||
#else
|
||
#define DEFAULT_SERVERPORT 2036 //默认的帧听端口
|
||
#define DEFAULT_SERVERPORT_UNI 2046 //默认的帧听端口
|
||
#endif
|
||
|
||
#define DEFAULT_SERVER _T("sms1.mobset.com") //默认的短信中心号
|
||
#define DEFAULT_SERVER2 _T("sms2.mobset.com") //默认的短信中心号
|
||
#define DEFAULT_SERVER3 _T("sms3.mobset.com") //默认的短信中心号
|
||
#define DEFAULT_SERVERA _T("adc.mobset.com") //默认的短信中心号
|
||
#define DEFAULT_SERVERNX _T("173.0.96.138") //默认的短信中心号
|
||
#define DEFAULT_SERVERGDDX _T("14.17.121.9") //默认的短信中心号
|
||
#define DEFAULT_SERVERDGSB _T("192.168.104.10") //默认的短信中心号
|
||
#define DEFAULT_SERVERGDYD_ADC _T("211.147.242.58:681")
|
||
|
||
#define SENDDATA_COMPRESS 0 //发送出去的数据是否压缩
|
||
#define SOCKETRECV_TIMEOUT 90000 //发送一Frame后,等待返回的超时时间
|
||
#define RECVREFRESH_TIMEOUT 100000 //每15秒发送测试数据,以防中心端被关闭
|
||
#define BBS_PROCESS_TIMEOUT COleDateTimeSpan(1,0,0,0) //BBS数据处理超时时间
|
||
#define BBS_PROCESS_TIMEOUT2 COleDateTimeSpan(0,2,0,0) //BBS数据处理超时时间
|
||
#define SUPPERGATEWAY_POST _T("/GateWay/GateWay.asp") //超级网关的文件名
|
||
|
||
#define SETPASSWD_POST _T("/SetPasswd.asp") //设置密码文件名
|
||
|
||
#define MOBSET_URL _T("http://www.mobset.com")
|
||
#define MOBSET_EMAIL _T("mailto:jtdx@mobset.com")
|
||
#define MOBSET_URL_REG _T("http://www.mobset.com/jtdx/reg2.htm")
|
||
|
||
#include ".\dog\Syunew3D.h"
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxwin.h>
|
||
#include <afxwin.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
#include <afxcontrolbars.h>
|
||
|
||
#define DOG_OLDWPASSWD 0xFFFFFFFF
|
||
#define DOG_OLDRPASSWD 0xFFFFFFFF
|
||
#define DOG_NEWWPASSWD 0x32E2A9B8
|
||
#define DOG_NEWRPASSWD 0x1A753D2C
|
||
|
||
#define DOG_INDATA 0x90FA9997
|
||
#define DOG_OUTDATA 0xE8774858
|
||
|
||
typedef struct _SM_Setup
|
||
{
|
||
TCHAR szIP[32]; //短信中心IP
|
||
TCHAR szUser[16]; //短信中心User
|
||
TCHAR szPasswd[40]; //短信中心Passwd
|
||
|
||
BOOL bProxyUse; //是否使用Proxy
|
||
long lProxyType; //Proxy类型
|
||
TCHAR szProxyIP[32];
|
||
long lProxyPort;
|
||
TCHAR szProxyUser[16];
|
||
TCHAR szProxyPasswd[40];
|
||
long bGateWay;
|
||
BOOL Warning_Enable;
|
||
long Warning_Timer;
|
||
BOOL Warning_Sound;
|
||
BOOL Warning_Flash;
|
||
BOOL Warning_Window;
|
||
BOOL Warning_OnlyContent;
|
||
BOOL Warning_Timeout;
|
||
}SM_Setup;
|
||
|
||
//{{AFX_INSERT_LOCATION}}
|
||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||
|
||
|
||
#if defined _M_IX86
|
||
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
||
#elif defined _M_IA64
|
||
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
||
#elif defined _M_X64
|
||
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
||
#else
|
||
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
||
#endif
|
||
|
||
|
||
#endif // !defined(AFX_STDAFX_H__DE43A14C_D8D5_498F_AA94_3F995CDE6728__INCLUDED_)
|