1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements.  See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License.  You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <windows.h>
18
19#include "ApacheMonitor.h"
20
21#define LONG_NAME Apache HTTP Server Monitor
22
23#include "../../build/win32/httpd.rc"
24
25
26IDI_APSRVMON            ICON    DISCARDABLE     "ApacheMonitor.ico"
27IDI_ICOSTOP             ICON    DISCARDABLE     "apstop.ico"
28IDI_ICORUN              ICON    DISCARDABLE     "aprun.ico"
29CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST  "ApacheMonitor.manifest"
30
31IDD_DLGSERVICES DIALOGEX 0, 0, 350, 192
32STYLE DS_MODALFRAME | DS_SETFOREGROUND | WS_MINIMIZEBOX | WS_VISIBLE |
33    WS_CLIPCHILDREN | WS_CAPTION | WS_SYSMENU
34EXSTYLE WS_EX_CONTROLPARENT
35CAPTION "Apache Service Monitor"
36FONT 8, "MS Sans Serif"
37BEGIN
38    PUSHBUTTON      "OK",IDCANCEL,298,161,50,14
39    CONTROL         IDB_BMPHEADER,IDC_STATIC,"Static",SS_BITMAP,0,0,349,38
40    LTEXT           "Service St&atus :",IDC_SSTATUS,3,40,272,8
41    LISTBOX         IDL_SERVICES,2,49,285,73,LBS_OWNERDRAWFIXED |
42                    LBS_HASSTRINGS | LBS_USETABSTOPS | LBS_NOINTEGRALHEIGHT |
43                    LBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP
44    LISTBOX         IDL_STDOUT,2,124,285,51,LBS_NOINTEGRALHEIGHT |
45                    LBS_DISABLENOSCROLL | LBS_NOSEL | WS_VSCROLL
46    PUSHBUTTON      "&Start",IDC_SSTART,298,49,50,14
47    PUSHBUTTON      "S&top",IDC_SSTOP,298,65,50,14
48    PUSHBUTTON      "&Restart",IDC_SRESTART,298,81,50,14
49    PUSHBUTTON      "Ser&vices",IDC_SMANAGER,298,97,50,14
50    PUSHBUTTON      "&Connect",IDC_SCONNECT,298,113,50,14
51    PUSHBUTTON      "&Disconnect",IDC_SDISCONN,298,129,50,14
52END
53
54IDD_DLGCONNECT DIALOGEX 0, 0, 240, 54
55STYLE DS_MODALFRAME | DS_SETFOREGROUND | WS_VISIBLE | WS_CLIPCHILDREN |
56    WS_CAPTION | WS_SYSMENU
57EXSTYLE WS_EX_CONTROLPARENT
58CAPTION "Connect To A Remote Computer"
59FONT 8, "MS Sans Serif"
60BEGIN
61    LTEXT           "Computer &Name:",IDC_LREMOTE,7,4,155,8
62    EDITTEXT        IDC_COMPUTER,7,14,169,14,ES_AUTOHSCROLL
63    DEFPUSHBUTTON   "&OK",IDOK,183,14,50,14
64    PUSHBUTTON      "&Cancel",IDCANCEL,183,34,50,14
65    PUSHBUTTON      "&Browse",IDC_LBROWSE,7,34,50,14
66END
67
68IDB_BMPSTOP             BITMAP  DISCARDABLE     "sstop.bmp"
69IDB_BMPRUN              BITMAP  DISCARDABLE     "srun.bmp"
70IDB_BMPHEADER           BITMAP  DISCARDABLE     "apache_header.bmp"
71
72STRINGTABLE DISCARDABLE
73BEGIN
74    IDS_APMONITORTITLE      "Apache Service Monitor"
75    IDS_APMONITORCLASS      "ApacheServiceMonitorClass"
76END
77
78STRINGTABLE DISCARDABLE
79BEGIN
80    IDS_MSG_APPRUNNING      "Apache monitor is already started"
81    IDS_MSG_ERROR           "Error"
82    IDS_MSG_RUNNINGALL      "Running all Apache services"
83    IDS_MSG_RUNNING         "Running %d of %d Apache services"
84    IDS_MSG_RUNNINGNONE     "Running none of %d Apache services"
85    IDS_MSG_NOSERVICES      "No services installed"
86    IDS_MSG_MNUSERVICES     "Open &Services"
87    IDS_MSG_MNUSHOW         "&Open Apache Monitor"
88    IDS_MSG_MNUEXIT         "E&xit"
89    IDS_MSG_OK              "OK"
90    IDS_MSG_SRVSTART        "The %s service is starting."
91    IDS_MSG_SRVSTARTED      "The %s service has started."
92    IDS_MSG_SRVSTOP         "The %s service is stopping."
93    IDS_MSG_SRVSTOPPED      "The %s service has stopped."
94    IDS_MSG_SRVRESTART      "The %s service is restarting."
95    IDS_MSG_SRVRESTARTED    "The %s service has restarted."
96    IDS_MSG_SRVFAILED       "The requested operation has failed!"
97    IDS_MSG_SSTART          "&Start"
98    IDS_MSG_SSTOP           "S&top"
99    IDS_MSG_SRESTART        "&Restart"
100    IDS_MSG_SERVICES        "Ser&vices"
101    IDS_MSG_CONNECT         "&Connect"
102    IDS_MSG_ECONNECT        "Unable to connect to the remote registry on %s"
103END
104