X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=nssm.h;h=e50f94660abbbff4ce646aca4b914a4ce254cd31;hb=62f28c55d444d846579159133dbe091809a2c08b;hp=f95391d12a65f1c4a0e5523b9f8dbdecd918f2e1;hpb=2f2f64b07611fe0709bf4d502de7cac292dc1975;p=nssm.git diff --git a/nssm.h b/nssm.h index f95391d..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,13 +60,19 @@ #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 *); 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 @@ -143,4 +156,7 @@ int usage(int); /* 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