Lines 1072-1082
Link Here
|
1072 |
_tcscpy(szBuf, szImagePath); |
1072 |
_tcscpy(szBuf, szImagePath); |
1073 |
CharLower(szBuf); |
1073 |
CharLower(szBuf); |
1074 |
/* the service name could be httpd*.exe or Apache*.exe */ |
1074 |
/* the service name could be httpd*.exe or Apache*.exe */ |
1075 |
if (((_tcsstr(szBuf, _T("\\apache")) != NULL) |
1075 |
if ((((_tcsstr(szBuf, _T("\\apache")) != NULL) |
1076 |
|| (_tcsstr(szBuf, _T("\\httpd")) != NULL)) |
1076 |
|| (_tcsstr(szBuf, _T("\\httpd")) != NULL)) |
1077 |
&& _tcsstr(szBuf, _T(".exe")) |
1077 |
&& _tcsstr(szBuf, _T(".exe")) |
1078 |
&& (_tcsstr(szBuf, _T("--ntservice")) != NULL |
1078 |
&& (_tcsstr(szBuf, _T("--ntservice")) != NULL |
1079 |
|| _tcsstr(szBuf, _T("-k ")) != NULL)) |
1079 |
|| _tcsstr(szBuf, _T("-k ")) != NULL)) |
|
|
1080 |
/* or the service name could be tomcat.exe or jk_nt_service.exe */ |
1081 |
|| (_tcsstr(szBuf, _T("\\tomcat.exe")) != NULL) |
1082 |
|| (_tcsstr(szBuf, _T("\\jk_nt_service.exe")) != NULL)) |
1080 |
{ |
1083 |
{ |
1081 |
g_stServices[stPos].szServiceName = _tcsdup(achKey); |
1084 |
g_stServices[stPos].szServiceName = _tcsdup(achKey); |
1082 |
g_stServices[stPos].szImagePath = _tcsdup(szImagePath); |
1085 |
g_stServices[stPos].szImagePath = _tcsdup(szImagePath); |