X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.h;h=162b8b3c604d22bf28e4e7ed20879e134b12bf0f;hb=143238dfe314c16bc90a6807ab0f00220efd34a2;hp=ffdf3d661cd57676f07c124c240b2f259af37186;hpb=5b9e64a9ae1fbf1254c9c246e5b123d3aa77a37a;p=nssm.git diff --git a/registry.h b/registry.h index ffdf3d6..162b8b3 100644 --- a/registry.h +++ b/registry.h @@ -8,6 +8,7 @@ #define NSSM_REG_ENV _T("AppEnvironment") #define NSSM_REG_ENV_EXTRA _T("AppEnvironmentExtra") #define NSSM_REG_EXIT _T("AppExit") +#define NSSM_REG_RESTART_DELAY _T("AppRestartDelay") #define NSSM_REG_THROTTLE _T("AppThrottle") #define NSSM_REG_STOP_METHOD_SKIP _T("AppStopMethodSkip") #define NSSM_REG_KILL_CONSOLE_GRACE_PERIOD _T("AppStopMethodConsole") @@ -19,12 +20,23 @@ #define NSSM_REG_STDIO_SHARING _T("ShareMode") #define NSSM_REG_STDIO_DISPOSITION _T("CreationDisposition") #define NSSM_REG_STDIO_FLAGS _T("FlagsAndAttributes") +#define NSSM_REG_ROTATE _T("AppRotateFiles") +#define NSSM_REG_ROTATE_ONLINE _T("AppRotateOnline") +#define NSSM_REG_ROTATE_SECONDS _T("AppRotateSeconds") +#define NSSM_REG_ROTATE_BYTES_LOW _T("AppRotateBytes") +#define NSSM_REG_ROTATE_BYTES_HIGH _T("AppRotateBytesHigh") +#define NSSM_REG_PRIORITY _T("AppPriority") +#define NSSM_REG_AFFINITY _T("AppAffinity") #define NSSM_STDIO_LENGTH 29 +HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam); +HKEY open_registry(const TCHAR *, REGSAM sam); int create_messages(); -int create_parameters(nssm_service_t *); -int create_exit_action(TCHAR *, const TCHAR *); +int create_parameters(nssm_service_t *, bool); +int create_exit_action(TCHAR *, const TCHAR *, bool); int set_environment(TCHAR *, HKEY, TCHAR *, TCHAR **, unsigned long *); +int format_environment(TCHAR *, unsigned long, TCHAR **, unsigned long *); +int unformat_environment(TCHAR *, unsigned long, TCHAR **, unsigned long *); int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool, bool); int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool); int set_expand_string(HKEY, TCHAR *, TCHAR *); @@ -33,6 +45,6 @@ int get_number(HKEY, TCHAR *, unsigned long *, bool); int get_number(HKEY, TCHAR *, unsigned long *); void override_milliseconds(TCHAR *, HKEY, TCHAR *, unsigned long *, unsigned long, unsigned long); int get_parameters(nssm_service_t *, STARTUPINFO *); -int get_exit_action(TCHAR *, unsigned long *, TCHAR *, bool *); +int get_exit_action(const TCHAR *, unsigned long *, TCHAR *, bool *); #endif