12345678910111213141516171819202122232425262728293031 |
- #ifndef __GLOBAL_20160918__
- #define __GLOBAL_20160918__
- #pragma once
- namespace Global
- {
- // 控制台输出;
- extern BOOL g_bStdOut;
- extern TCHAR g_szModulePath[MAX_PATH]; // 软件目录;
- extern TCHAR g_szModuleFileName[MAX_PATH]; // 软件名称;
- extern TCHAR g_szConnectString[MAX_PATH]; // DB连接串;
- // 服务器信息;
- extern TCHAR g_szSvrAddress[MAX_PATH]; // 服务器IP地址;
- extern TCHAR g_szDBSource[MAX_PATH]; // 数据库源(服务所在IP或计算机名);
- extern TCHAR g_szDBSourcePort[MAX_PATH]; // 数据库源端口;
- extern DWORD g_dwDBServerPort; // 数据库源端口;
- extern TCHAR g_szDBAccount[MAX_PATH]; // 数据库登录用户;
- extern TCHAR g_szDBPassWord[MAX_PATH]; // 数据库登录密码;
- extern TCHAR g_szDBName[MAX_PATH]; // 数据库名称;
- extern DWORD g_dwSvrPort;
- extern DWORD g_dwDBPoolMaxCount; // 数据库连接池最大对象数;
- extern DWORD g_dwDBPoolDef; // 数据库连接池默认对象数;
- extern int GetIniInfo(const TCHAR *szPath = NULL, const TCHAR *szIniName = NULL);
- extern void WriteTextLog(const TCHAR *format, ...);
- extern TCHAR* GetGuidString();
- extern INT AddAutoSysRun(LPBYTE lpExeFile,CONST DWORD &cbExeFile, LPCTSTR lpKeyName, INT iAutoRunSystem);
- };
- #endif
|