提交 e10e00fb 编写于 作者: xengine-qyt's avatar xengine-qyt

added:bTimeNotify configure

上级 cfd15245
...@@ -21,6 +21,7 @@ typedef struct ...@@ -21,6 +21,7 @@ typedef struct
int nVerTimeout; //用户验证超时时间 int nVerTimeout; //用户验证超时时间
BOOL bAutoStart; //自启动 BOOL bAutoStart; //自启动
BOOL bDeamon; //守护进程,LINUX BOOL bDeamon; //守护进程,LINUX
BOOL bTimeNotify; //超时通知设置,真为一直通知,假为通知一次关闭客户端
struct struct
{ {
int nVerTime; //验证时间 int nVerTime; //验证时间
......
...@@ -55,6 +55,7 @@ BOOL CConfigure_IniFile::Configure_IniFile_Read(LPCTSTR lpszFile, AUTHORIZE_CONF ...@@ -55,6 +55,7 @@ BOOL CConfigure_IniFile::Configure_IniFile_Read(LPCTSTR lpszFile, AUTHORIZE_CONF
pSt_AuthConfig->nThreads = GetPrivateProfileInt(_T("ServiceConfig"), _T("ThreadPool"), 0, lpszFile); pSt_AuthConfig->nThreads = GetPrivateProfileInt(_T("ServiceConfig"), _T("ThreadPool"), 0, lpszFile);
pSt_AuthConfig->nVerTimeout = GetPrivateProfileInt(_T("ServiceConfig"), _T("UserVerTimed"), 0, lpszFile); pSt_AuthConfig->nVerTimeout = GetPrivateProfileInt(_T("ServiceConfig"), _T("UserVerTimed"), 0, lpszFile);
pSt_AuthConfig->bAutoStart = GetPrivateProfileInt(_T("ServiceConfig"), _T("AutoStart"), 0, lpszFile); pSt_AuthConfig->bAutoStart = GetPrivateProfileInt(_T("ServiceConfig"), _T("AutoStart"), 0, lpszFile);
pSt_AuthConfig->bTimeNotify = GetPrivateProfileInt(_T("ServiceConfig"), _T("TimeNotify"), 0, lpszFile);
pSt_AuthConfig->st_Verification.nVerTime = GetPrivateProfileInt(_T("Verification"), _T("VerTime"), 0, lpszFile); pSt_AuthConfig->st_Verification.nVerTime = GetPrivateProfileInt(_T("Verification"), _T("VerTime"), 0, lpszFile);
pSt_AuthConfig->st_Verification.nVerMode = GetPrivateProfileInt(_T("Verification"), _T("VerMode"), 0, lpszFile); pSt_AuthConfig->st_Verification.nVerMode = GetPrivateProfileInt(_T("Verification"), _T("VerMode"), 0, lpszFile);
...@@ -121,6 +122,9 @@ BOOL CConfigure_IniFile::Configure_IniFile_Write(LPCTSTR lpszFile, AUTHORIZE_CON ...@@ -121,6 +122,9 @@ BOOL CConfigure_IniFile::Configure_IniFile_Write(LPCTSTR lpszFile, AUTHORIZE_CON
memset(tszBuffer, '\0', MAX_PATH); memset(tszBuffer, '\0', MAX_PATH);
_stprintf(tszBuffer, _T("%d"), pSt_AuthConfig->bAutoStart); _stprintf(tszBuffer, _T("%d"), pSt_AuthConfig->bAutoStart);
WritePrivateProfileString(_T("ServiceConfig"), _T("AutoStart"), tszBuffer, lpszFile); WritePrivateProfileString(_T("ServiceConfig"), _T("AutoStart"), tszBuffer, lpszFile);
memset(tszBuffer, '\0', MAX_PATH);
_stprintf(tszBuffer, _T("%d"), pSt_AuthConfig->bTimeNotify);
WritePrivateProfileString(_T("ServiceConfig"), _T("TimeNotify"), tszBuffer, lpszFile);
memset(tszBuffer, '\0', MAX_PATH); memset(tszBuffer, '\0', MAX_PATH);
_stprintf(tszBuffer, _T("%d"), pSt_AuthConfig->st_Verification.nTryTime); _stprintf(tszBuffer, _T("%d"), pSt_AuthConfig->st_Verification.nTryTime);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册