X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=nssm.h;h=79c2065b073fda2eea00a61b831cbfe2842936ba;hb=2cd1c7c29ef4d2d3df3c5afd3ca6c788aede2bef;hp=70d53969a82b11d0cfbb7e2429f4ebc76538f4a3;hpb=02203cb8aff4be6a094b7a9ded867c3b5d743d77;p=nssm.git diff --git a/nssm.h b/nssm.h index 70d5396..79c2065 100644 --- a/nssm.h +++ b/nssm.h @@ -2,6 +2,8 @@ #define NSSM_H #define _WIN32_WINNT 0x0500 +#include +#include #include #include #include @@ -19,7 +21,9 @@ int str_equiv(const TCHAR *, const TCHAR *); 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); #define NSSM _T("NSSM") @@ -91,4 +95,7 @@ int usage(int); /* How many milliseconds to wait before updating service status. */ #define NSSM_SERVICE_STATUS_DEADLINE 20000 +/* User-defined service controls can be in the range 128-255. */ +#define NSSM_SERVICE_CONTROL_ROTATE 128 + #endif