X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=nssm.h;h=5709bd6aa0bb693bdbd1cfcb7eafad2e6de5baa9;hb=d1c0d356f6ea58980a33f2fa2da1b6971dd9f909;hp=1ad2b948ccae3aa473d168abdeef387791147689;hpb=2994e17c24d8a3d32937a92733ba1ee0f26dc33d;p=nssm.git diff --git a/nssm.h b/nssm.h index 1ad2b94..5709bd6 100644 --- a/nssm.h +++ b/nssm.h @@ -33,15 +33,25 @@ #define DIR_LENGTH PATH_LENGTH - 12 #define _WIN32_WINNT 0x0500 + +#define APSTUDIO_HIDDEN_SYMBOLS +#include +#include +#undef APSTUDIO_HIDDEN_SYMBOLS +#include +#include +#ifndef NSSM_COMPILE_RC #include #include #include #include #include -#include -#include #include "service.h" +#include "account.h" +#include "console.h" +#include "env.h" #include "event.h" +#include "hook.h" #include "imports.h" #include "messages.h" #include "process.h" @@ -49,13 +59,18 @@ #include "settings.h" #include "io.h" #include "gui.h" +#endif int str_equiv(const TCHAR *, const TCHAR *); +int quote(const TCHAR *, TCHAR *, size_t); void strip_basename(TCHAR *); int str_number(const TCHAR *, unsigned long *, TCHAR **); int str_number(const TCHAR *, unsigned long *); int num_cpus(); int usage(int); +const TCHAR *nssm_unquoted_imagepath(); +const TCHAR *nssm_imagepath(); +const TCHAR *nssm_exe(); #define NSSM _T("NSSM") #ifdef _WIN64 @@ -93,6 +108,9 @@ int usage(int); */ #define NSSM_KILL_THREADS_GRACE_PERIOD 1500 +/* How many milliseconds to pause after rotating logs. */ +#define NSSM_ROTATE_DELAY 0 + /* Margin of error for service status wait hints in milliseconds. */ #define NSSM_WAITHINT_MARGIN 2000 @@ -130,4 +148,10 @@ int usage(int); #define NSSM_SERVICE_CONTROL_START 0 #define NSSM_SERVICE_CONTROL_ROTATE 128 +/* How many milliseconds to wait for a hook. */ +#define NSSM_HOOK_DEADLINE 60000 + +/* How many milliseconds to wait for outstanding hooks. */ +#define NSSM_HOOK_THREAD_DEADLINE 80000 + #endif