X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=nssm.h;h=70d53969a82b11d0cfbb7e2429f4ebc76538f4a3;hb=02203cb8aff4be6a094b7a9ded867c3b5d743d77;hp=636524df567904e02bc78618ffd380b94caa1e13;hpb=44e85d48df1ecc95547d066459a1e904f128618c;p=nssm.git diff --git a/nssm.h b/nssm.h index 636524d..70d5396 100644 --- a/nssm.h +++ b/nssm.h @@ -13,14 +13,27 @@ #include "messages.h" #include "process.h" #include "registry.h" +#include "settings.h" #include "io.h" #include "gui.h" int str_equiv(const TCHAR *, const TCHAR *); void strip_basename(TCHAR *); +int str_number(const TCHAR *, unsigned long *); int usage(int); -#define NSSM _T("nssm") +#define NSSM _T("NSSM") +#ifdef _WIN64 +#define NSSM_ARCHITECTURE _T("64-bit") +#else +#define NSSM_ARCHITECTURE _T("32-bit") +#endif +#ifdef _DEBUG +#define NSSM_DEBUG _T(" debug") +#else +#define NSSM_DEBUG _T("") +#endif +#define NSSM_CONFIGURATION NSSM_ARCHITECTURE NSSM_DEBUG #include "version.h" /* @@ -67,6 +80,14 @@ int usage(int); #define NSSM_EXIT_UNCLEAN 3 #define NSSM_NUM_EXIT_ACTIONS 4 +/* Process priority. */ +#define NSSM_REALTIME_PRIORITY 0 +#define NSSM_HIGH_PRIORITY 1 +#define NSSM_ABOVE_NORMAL_PRIORITY 2 +#define NSSM_NORMAL_PRIORITY 3 +#define NSSM_BELOW_NORMAL_PRIORITY 4 +#define NSSM_IDLE_PRIORITY 5 + /* How many milliseconds to wait before updating service status. */ #define NSSM_SERVICE_STATUS_DEADLINE 20000