X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=nssm.h;h=0e918c3c9c2925d07428a04b6104c3a7874be13a;hb=cb641f9b0c4a2987c8fb4fe4ff431ecb660a924f;hp=af8380ea48c9330428d3e5a233ea3c14eb54665a;hpb=63363fbc93ec23e1673113029e819c1a55dd7967;p=nssm.git diff --git a/nssm.h b/nssm.h index af8380e..0e918c3 100644 --- a/nssm.h +++ b/nssm.h @@ -2,6 +2,7 @@ #define NSSM_H #define _WIN32_WINNT 0x0500 +#include #include #include #include @@ -9,15 +10,16 @@ #include "messages.h" #include "process.h" #include "registry.h" +#include "io.h" #include "service.h" #include "gui.h" int str_equiv(const char *, const char *); #define NSSM "nssm" -#define NSSM_VERSION "2.7" -#define NSSM_DATE "2011-01-25" -#define NSSM_RUN "run" +#define NSSM_VERSION "2.16" +#define NSSM_VERSIONINFO 2,16,0,0 +#define NSSM_DATE "2012-12-01" /* MSDN says the commandline in CreateProcess() is limited to 32768 characters @@ -34,10 +36,15 @@ int str_equiv(const char *, const char *); /* Throttle the restart of the service if it stops before this many - milliseconds have elapsed since startup. + milliseconds have elapsed since startup. Override in registry. */ #define NSSM_RESET_THROTTLE_RESTART 1500 +/* + How many milliseconds to wait for the application to die after sending + a Control-C event to its console. +*/ +#define NSSM_KILL_CONSOLE_GRACE_PERIOD 1500 /* How many milliseconds to wait for the application to die after posting to its windows' message queues.