X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=nssm.h;h=e50f94660abbbff4ce646aca4b914a4ce254cd31;hb=ee9a86c8408feaf173733aea12a80211e5d74483;hp=911804fb6fc2d460590949eb35219ab47e2699cb;hpb=4c25687ee744780127150e22640df47931d139a9;p=nssm.git diff --git a/nssm.h b/nssm.h index 911804f..e50f946 100644 --- a/nssm.h +++ b/nssm.h @@ -33,13 +33,20 @@ #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 "utf8.h" #include "service.h" #include "account.h" #include "console.h" @@ -53,8 +60,11 @@ #include "settings.h" #include "io.h" #include "gui.h" +#endif +void nssm_exit(int); 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 *); @@ -62,6 +72,7 @@ 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 @@ -145,4 +156,7 @@ const TCHAR *nssm_imagepath(); /* How many milliseconds to wait for outstanding hooks. */ #define NSSM_HOOK_THREAD_DEADLINE 80000 +/* How many milliseconds to wait for closing logging thread. */ +#define NSSM_CLEANUP_LOGGERS_DEADLINE 1500 + #endif