Rotate files while the service is running.
[nssm.git] / registry.h
index 600c188..162b8b3 100644 (file)
@@ -8,6 +8,7 @@
 #define NSSM_REG_ENV _T("AppEnvironment")\r
 #define NSSM_REG_ENV_EXTRA _T("AppEnvironmentExtra")\r
 #define NSSM_REG_EXIT _T("AppExit")\r
+#define NSSM_REG_RESTART_DELAY _T("AppRestartDelay")\r
 #define NSSM_REG_THROTTLE _T("AppThrottle")\r
 #define NSSM_REG_STOP_METHOD_SKIP _T("AppStopMethodSkip")\r
 #define NSSM_REG_KILL_CONSOLE_GRACE_PERIOD _T("AppStopMethodConsole")\r
 #define NSSM_REG_STDIO_DISPOSITION _T("CreationDisposition")\r
 #define NSSM_REG_STDIO_FLAGS _T("FlagsAndAttributes")\r
 #define NSSM_REG_ROTATE _T("AppRotateFiles")\r
+#define NSSM_REG_ROTATE_ONLINE _T("AppRotateOnline")\r
 #define NSSM_REG_ROTATE_SECONDS _T("AppRotateSeconds")\r
 #define NSSM_REG_ROTATE_BYTES_LOW _T("AppRotateBytes")\r
 #define NSSM_REG_ROTATE_BYTES_HIGH _T("AppRotateBytesHigh")\r
+#define NSSM_REG_PRIORITY _T("AppPriority")\r
+#define NSSM_REG_AFFINITY _T("AppAffinity")\r
 #define NSSM_STDIO_LENGTH 29\r
 \r
+HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam);\r
+HKEY open_registry(const TCHAR *, REGSAM sam);\r
 int create_messages();\r
-int create_parameters(nssm_service_t *);\r
-int create_exit_action(TCHAR *, const TCHAR *);\r
+int create_parameters(nssm_service_t *, bool);\r
+int create_exit_action(TCHAR *, const TCHAR *, bool);\r
 int set_environment(TCHAR *, HKEY, TCHAR *, TCHAR **, unsigned long *);\r
+int format_environment(TCHAR *, unsigned long, TCHAR **, unsigned long *);\r
+int unformat_environment(TCHAR *, unsigned long, TCHAR **, unsigned long *);\r
 int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool, bool);\r
 int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool);\r
 int set_expand_string(HKEY, TCHAR *, TCHAR *);\r
@@ -37,6 +45,6 @@ int get_number(HKEY, TCHAR *, unsigned long *, bool);
 int get_number(HKEY, TCHAR *, unsigned long *);\r
 void override_milliseconds(TCHAR *, HKEY, TCHAR *, unsigned long *, unsigned long, unsigned long);\r
 int get_parameters(nssm_service_t *, STARTUPINFO *);\r
-int get_exit_action(TCHAR *, unsigned long *, TCHAR *, bool *);\r
+int get_exit_action(const TCHAR *, unsigned long *, TCHAR *, bool *);\r
 \r
 #endif\r