Global.h 984 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __LYFZ_SERVERINFO_HEADER__
  2. #define __LYFZ_SERVERINFO_HEADER__
  3. #include "Ado2Impl.h"
  4. #pragma once
  5. extern TCHAR g_szModulePath[MAX_PATH]; // 软件目录;
  6. extern TCHAR g_szModuleFileName[MAX_PATH]; // 软件名称;
  7. extern TCHAR g_szConnectString[MAX_PATH]; // DB连接串;
  8. // 服务器信息;
  9. extern TCHAR g_szDBSource[MAX_PATH]; // 数据库源(服务所在IP或计算机名);
  10. extern TCHAR g_szDBSourcePort[MAX_PATH]; // 数据库源端口;
  11. extern DWORD g_dwDBServerPort; // 数据库源端口;
  12. extern TCHAR g_szDBAccount[MAX_PATH]; // 数据库登录用户;
  13. extern TCHAR g_szDBPassWord[MAX_PATH]; // 数据库登录密码;
  14. extern TCHAR g_szDBName[MAX_PATH]; // 数据库名称;
  15. extern Ado2Impl* g_AdoImpl;
  16. extern CHAR g_szKeyPath[MAX_PATH];
  17. extern int g_nVersion;
  18. extern TCHAR g_szEncryS1[50]; // 加密狗S1字符串值;
  19. extern int GetIniInfo(const TCHAR *szPath=NULL,const TCHAR *szIniName=NULL);
  20. extern int FindPortEx(int start, BYTE *InByte, int InLen, char *OutPath);
  21. extern int GetSoftWareVersion();
  22. #endif