Global.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef __GLOBAL_HEADER__
  2. #define __GLOBAL_HEADER__
  3. #pragma once
  4. #include "Client2SrvType.h"
  5. extern TCHAR g_szServerIP[100]; // 服务器地址 针对客户端;
  6. extern TCHAR g_szCmdPort[10]; // 服务器命令端口号;
  7. extern TCHAR g_szFilePort[10]; // 服务器文件端口号;
  8. extern DWORD g_dwCmdPort; // 服务器命令端口号;
  9. extern DWORD g_dwFilePort; // 服务器文件端口号;
  10. // 1.数据库;
  11. extern TCHAR g_szDBSource[MAX_PATH+1]; // 数据库服务地址;
  12. extern DWORD g_dwDBServerPort; // 数据库服务端口号;
  13. extern TCHAR g_szDBAccount[MAX_PATH+1]; // 数据库登录名;
  14. extern TCHAR g_szDBPassWord[MAX_PATH+1]; // 数据库密码;
  15. extern TCHAR g_szDBName[MAX_PATH+1]; // 数据库名;
  16. // 2.
  17. extern TCHAR g_ModulePath[_MAX_PATH]; // 模块路径;
  18. extern TCHAR g_ModuleFileName[_MAX_PATH]; // 模块完整路径名;
  19. extern TCHAR g_szConnectString[MAX_PATH]; // DB连接串;
  20. // 3.指纹机;
  21. extern int g_nType;
  22. extern long g_nMachineNumber;
  23. extern long g_nLicense;
  24. extern long g_nComPort;
  25. extern long g_nBaudRate;
  26. extern char g_szTelNumber[MAX_PATH+1];
  27. extern long g_nWaitDialTime;
  28. extern char g_szIpAddress[MAX_PATH+1];
  29. extern long g_nPort;
  30. extern long g_nTimeOut;
  31. extern long g_nProtocolType;
  32. extern long g_nNetPassword;
  33. extern STFileInfobody *g_pSTFileInfobody;
  34. extern DWORD g_dwRecived;
  35. extern BOOL g_bGetRoutinePath;
  36. extern void GetRoutinePath();
  37. extern unsigned int VerifyIntegrityPacket(IN void *pIntegrityPacket,IN unsigned int nPacketSize);
  38. extern void GetFileName(IN const TCHAR *pFullName,OUT TCHAR *pFileName);
  39. extern int GetServerIniInfo(const char *szPath=NULL, const char *szIniName=NULL); // Jeff Add:获取ini文件信息;
  40. extern int GetClientIniInfo(const char *szPath=NULL, const char *szIniName=NULL); // Jeff Add:获取ini文件信息;
  41. #endif