4 #define _WIN32_WINNT 0x0500
\r
11 #include "imports.h"
\r
12 #include "messages.h"
\r
13 #include "process.h"
\r
14 #include "registry.h"
\r
18 int str_equiv(const char *, const char *);
\r
21 #define NSSM_VERSION "2.18"
\r
22 #define NSSM_VERSIONINFO 2,18,0,0
\r
23 #define NSSM_DATE "2013-11-15"
\r
26 Throttle the restart of the service if it stops before this many
\r
27 milliseconds have elapsed since startup. Override in registry.
\r
29 #define NSSM_RESET_THROTTLE_RESTART 1500
\r
32 How many milliseconds to wait for the application to die after sending
\r
33 a Control-C event to its console. Override in registry.
\r
35 #define NSSM_KILL_CONSOLE_GRACE_PERIOD 1500
\r
37 How many milliseconds to wait for the application to die after posting to
\r
38 its windows' message queues. Override in registry.
\r
40 #define NSSM_KILL_WINDOW_GRACE_PERIOD 1500
\r
42 How many milliseconds to wait for the application to die after posting to
\r
43 its threads' message queues. Override in registry.
\r
45 #define NSSM_KILL_THREADS_GRACE_PERIOD 1500
\r
47 /* Margin of error for service status wait hints in milliseconds. */
\r
48 #define NSSM_WAITHINT_MARGIN 2000
\r
50 /* Methods used to try to stop the application. */
\r
51 #define NSSM_STOP_METHOD_CONSOLE (1 << 0)
\r
52 #define NSSM_STOP_METHOD_WINDOW (1 << 1)
\r
53 #define NSSM_STOP_METHOD_THREADS (1 << 2)
\r
54 #define NSSM_STOP_METHOD_TERMINATE (1 << 3)
\r
56 /* How many milliseconds to wait before updating service status. */
\r
57 #define NSSM_SERVICE_STATUS_DEADLINE 20000
\r