Lines 35-40
Link Here
|
35 |
#undef _WINUSER_ |
35 |
#undef _WINUSER_ |
36 |
#include <winuser.h> |
36 |
#include <winuser.h> |
37 |
|
37 |
|
|
|
38 |
extern DWORD parent_pid; |
39 |
|
38 |
static char *mpm_service_name = NULL; |
40 |
static char *mpm_service_name = NULL; |
39 |
static char *mpm_display_name = NULL; |
41 |
static char *mpm_display_name = NULL; |
40 |
|
42 |
|
Lines 1289-1296
void mpm_signal_service(apr_pool_t *ptem
Link Here
|
1289 |
* provided the class is ApacheWin95ServiceMonitor |
1291 |
* provided the class is ApacheWin95ServiceMonitor |
1290 |
*/ |
1292 |
*/ |
1291 |
hwnd = FindWindow("ApacheWin95ServiceMonitor", mpm_service_name); |
1293 |
hwnd = FindWindow("ApacheWin95ServiceMonitor", mpm_service_name); |
1292 |
if (hwnd && GetWindowThreadProcessId(hwnd, &service_pid)) |
1294 |
if (hwnd && GetWindowThreadProcessId(hwnd, &service_pid)) { |
|
|
1295 |
parent_pid = service_pid; |
1293 |
globdat.ssStatus.dwCurrentState = SERVICE_RUNNING; |
1296 |
globdat.ssStatus.dwCurrentState = SERVICE_RUNNING; |
|
|
1297 |
} |
1294 |
else |
1298 |
else |
1295 |
{ |
1299 |
{ |
1296 |
globdat.ssStatus.dwCurrentState = SERVICE_STOPPED; |
1300 |
globdat.ssStatus.dwCurrentState = SERVICE_STOPPED; |