X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.h;h=390e0329b8db7d044058d738e16b4713efc214c9;hb=e3b93d0c37ae200fa0375e4be6f435008050b385;hp=6afa536cab2386fc6ca3956c5c1b655bd6eb90ed;hpb=02203cb8aff4be6a094b7a9ded867c3b5d743d77;p=nssm.git diff --git a/registry.h b/registry.h index 6afa536..390e032 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") @@ -20,10 +21,12 @@ #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); @@ -32,10 +35,12 @@ int create_messages(); 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 get_string(HKEY, TCHAR *, TCHAR *, unsigned long, bool, bool, bool); +int get_string(HKEY, TCHAR *, TCHAR *, unsigned long, bool); int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool, bool); int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool); +int set_string(HKEY, TCHAR *, TCHAR *, bool); +int set_string(HKEY, TCHAR *, TCHAR *); int set_expand_string(HKEY, TCHAR *, TCHAR *); int set_number(HKEY, TCHAR *, unsigned long); int get_number(HKEY, TCHAR *, unsigned long *, bool);