Skip to content

Commit 51f569d

Browse files
committed
modify:match show windows type on windows
1 parent c75089c commit 51f569d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

XEngine_Release/XEngine_Config/XEngine_Config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"tszIPAddr":"192.168.1.8",
33
"bDeamon":false,
4-
"bHideWnd":false,
4+
"bShowWnd":true,
55
"nHttpPort":5501,
66
"nRFCPort":5502,
77
"XMax":{

XEngine_Source/XEngine_ModuleConfigure/ModuleConfig_Define.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ typedef struct
1717
{
1818
XCHAR tszIPAddr[128]; //本机IP地址,根据需要配置
1919
bool bDeamon; //是否以守护进程启动,LINUX有效
20-
bool bHideWnd; //是否隐藏窗口启动
20+
bool bShowWnd; //是否显示窗口启动
2121
int nHttpPort; //HTTP服务端口
2222
int nRFCPort; //RFC标准服务端口
2323
struct

XEngine_Source/XEngine_ModuleConfigure/ModuleConfigure_Json/ModuleConfigure_Json.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bool CModuleConfigure_Json::ModuleConfigure_Json_File(LPCXSTR lpszConfigFile, XE
8383
}
8484
_tcsxcpy(pSt_ServerConfig->tszIPAddr, st_JsonRoot["tszIPAddr"].asCString());
8585
pSt_ServerConfig->bDeamon = st_JsonRoot["bDeamon"].asBool();
86-
pSt_ServerConfig->bHideWnd = st_JsonRoot["bHideWnd"].asBool();
86+
pSt_ServerConfig->bShowWnd = st_JsonRoot["bShowWnd"].asBool();
8787
pSt_ServerConfig->nHttpPort = st_JsonRoot["nHttpPort"].asInt();
8888
pSt_ServerConfig->nRFCPort = st_JsonRoot["nRFCPort"].asInt();
8989

XEngine_Source/XEngine_ServiceApp/XEngine_APIServiceApp/XEngine_APIServiceApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void WINAPI XEngine_ServiceMain(DWORD dwArgc, LPTSTR* lpszArgv)
136136
SYSTEMAPI_PROCESS_INFOMATION st_ProcessInfo = {};
137137
if (!SystemApi_Process_GetProcessInfo(&st_ProcessInfo, NULL, dwProcessID))
138138
{
139-
SystemApi_Process_CreateProcess(&dwProcessID, "./XEngine_HttpApp.exe", "-db 0", st_ServiceConfig.bHideWnd);
139+
SystemApi_Process_CreateProcess(&dwProcessID, "./XEngine_HttpApp.exe", "-db 0", st_ServiceConfig.bShowWnd);
140140
}
141141
Sleep(1000);
142142
}

XEngine_Source/XEngine_ServiceApp/XEngine_HttpApp/XEngine_Configure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ bool XEngine_Configure_Parament(int argc, char** argv)
4545
}
4646
else if (0 == _tcsxcmp("-w", argv[i]))
4747
{
48-
st_ServiceConfig.bHideWnd = _ttxoi(argv[++i]);
48+
st_ServiceConfig.bShowWnd = _ttxoi(argv[++i]);
4949
}
5050
else if (0 == _tcsxcmp("-hp", argv[i]))
5151
{

XEngine_Source/XEngine_ServiceApp/XEngine_HttpApp/XEngine_HttpApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int main(int argc, char** argv)
197197
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_WARN, _X("启动服务中,启动权限不足,对于进程和后台服务任务可能会执行失败"));
198198
}
199199

200-
if (st_ServiceConfig.bHideWnd)
200+
if (!st_ServiceConfig.bShowWnd)
201201
{
202202
#ifdef _MSC_BUILD
203203
HWND hWnd = GetConsoleWindow();

0 commit comments

Comments
 (0)