Apache HTTPD
mpm_winnt.h
Go to the documentation of this file.
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
25#ifndef APACHE_MPM_WINNT_H
26#define APACHE_MPM_WINNT_H
27
28#include "apr_proc_mutex.h"
29#include "ap_listen.h"
30
31/* From service.c: */
32
33#define SERVICE_APACHE_RESTART 128
34
35#ifndef AP_DEFAULT_SERVICE_NAME
36#define AP_DEFAULT_SERVICE_NAME "Apache2.4"
37#endif
38
39#define SERVICECONFIG "System\\CurrentControlSet\\Services\\%s"
40#define SERVICEPARAMS "System\\CurrentControlSet\\Services\\%s\\Parameters"
41
43 const char *set_name);
45 int fixed_args);
46
50 char const* const* argv, int reconfig);
52
54 char const* const* argv);
55
56void mpm_signal_service(apr_pool_t *ptemp, int signal);
57
58void mpm_service_stopping(void);
59
62
63/* From nt_eventlog.c: */
64
67
68/* From mpm_winnt.c: */
69
70extern module AP_MODULE_DECLARE_DATA mpm_winnt_module;
71extern int ap_threads_per_child;
72
73extern DWORD my_pid;
75extern HANDLE exit_event;
76
77extern int winnt_mpm_state;
78extern OSVERSIONINFO osver;
80
81extern void clean_child_exit(int);
82
89
91
92/* From child.c: */
94
95#endif /* APACHE_MPM_WINNT_H */
#define AP_DECLARE(type)
Definition ap_config.h:67
Apache Listeners Library.
APR Process Locking Routines.
static apr_pool_t * pconf
Definition event.c:441
DWORD stack_res_flag
void clean_child_exit(int)
Definition worker.c:440
int ap_threads_per_child
void mpm_start_child_console_handler(void)
Definition service.c:213
apr_status_t mpm_service_start(apr_pool_t *ptemp, int argc, char const *const *argv)
Definition service.c:1035
apr_status_t mpm_service_to_start(const char **display_name, apr_pool_t *p)
Definition service.c:684
apr_status_t mpm_service_set_name(apr_pool_t *p, const char **display_name, const char *set_name)
Definition service.c:561
ap_signal_parent_e
Definition mpm_winnt.h:83
void child_main(apr_pool_t *pconf, DWORD parent_pid)
void mpm_nt_eventlog_stderr_open(const char *display_name, apr_pool_t *p)
OSVERSIONINFO osver
void mpm_signal_service(apr_pool_t *ptemp, int signal)
Definition service.c:1147
void hold_console_open_on_error(void)
Definition service.c:111
void mpm_start_console_handler(void)
Definition service.c:206
void ap_signal_parent(ap_signal_parent_e type)
void mpm_service_stopping(void)
Definition service.c:738
DWORD my_pid
apr_status_t mpm_service_uninstall(void)
Definition service.c:946
int winnt_mpm_state
apr_status_t mpm_service_started(void)
Definition service.c:730
apr_proc_mutex_t * start_mutex
HANDLE exit_event
apr_status_t mpm_service_install(apr_pool_t *ptemp, int argc, char const *const *argv, int reconfig)
Definition service.c:744
void mpm_nt_eventlog_stderr_flush(void)
apr_status_t mpm_merge_service_args(apr_pool_t *p, apr_array_header_t *args, int fixed_args)
Definition service.c:606
@ SIGNAL_PARENT_SHUTDOWN
Definition mpm_winnt.h:84
@ SIGNAL_PARENT_RESTART_GRACEFUL
Definition mpm_winnt.h:86
@ SIGNAL_PARENT_RESTART
Definition mpm_winnt.h:85
apr_size_t size
int apr_status_t
Definition apr_errno.h:44
int type
apr_pool_t int argc
Definition apr_getopt.h:104
const char const char *const * args
apr_pool_t * p
Definition md_event.c:32
static pid_t parent_pid
Definition mod_cgid.c:91
const char * argv[3]
static const char * display_name
Definition nt_eventlog.c:25
typedef HANDLE(WINAPI *apr_winapi_fpt_CreateToolhelp32Snapshot)(DWORD dwFlags
typedef DWORD(WINAPI *apr_winapi_fpt_GetCompressedFileSizeA)(IN LPCSTR lpFileName