1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef __GLOBAL_HEADER__
- #define __GLOBAL_HEADER__
- #pragma once
- #include "Client2SrvType.h"
- extern TCHAR g_szServerIP[100]; // 服务器地址 针对客户端;
- extern TCHAR g_szCmdPort[10]; // 服务器命令端口号;
- extern TCHAR g_szFilePort[10]; // 服务器文件端口号;
- extern DWORD g_dwCmdPort; // 服务器命令端口号;
- extern DWORD g_dwFilePort; // 服务器文件端口号;
- // 1.数据库;
- extern TCHAR g_szDBSource[MAX_PATH+1]; // 数据库服务地址;
- extern DWORD g_dwDBServerPort; // 数据库服务端口号;
- extern TCHAR g_szDBAccount[MAX_PATH+1]; // 数据库登录名;
- extern TCHAR g_szDBPassWord[MAX_PATH+1]; // 数据库密码;
- extern TCHAR g_szDBName[MAX_PATH+1]; // 数据库名;
- // 2.
- extern TCHAR g_ModulePath[_MAX_PATH]; // 模块路径;
- extern TCHAR g_ModuleFileName[_MAX_PATH]; // 模块完整路径名;
- extern TCHAR g_szConnectString[MAX_PATH]; // DB连接串;
- // 3.指纹机;
- extern int g_nType;
- extern long g_nMachineNumber;
- extern long g_nLicense;
- extern long g_nComPort;
- extern long g_nBaudRate;
- extern char g_szTelNumber[MAX_PATH+1];
- extern long g_nWaitDialTime;
- extern char g_szIpAddress[MAX_PATH+1];
- extern long g_nPort;
- extern long g_nTimeOut;
- extern long g_nProtocolType;
- extern long g_nNetPassword;
- extern STFileInfobody *g_pSTFileInfobody;
- extern DWORD g_dwRecived;
- extern BOOL g_bGetRoutinePath;
- extern void GetRoutinePath();
- extern unsigned int VerifyIntegrityPacket(IN void *pIntegrityPacket,IN unsigned int nPacketSize);
- extern void GetFileName(IN const TCHAR *pFullName,OUT TCHAR *pFileName);
- extern int GetServerIniInfo(const char *szPath=NULL, const char *szIniName=NULL); // Jeff Add:获取ini文件信息;
- extern int GetClientIniInfo(const char *szPath=NULL, const char *szIniName=NULL); // Jeff Add:获取ini文件信息;
- #endif
|