Run hooks in response to certain events.
[nssm.git] / registry.h
index f831f89..1649bdf 100644 (file)
 #define NSSM_REG_STDIO_SHARING _T("ShareMode")\r
 #define NSSM_REG_STDIO_DISPOSITION _T("CreationDisposition")\r
 #define NSSM_REG_STDIO_FLAGS _T("FlagsAndAttributes")\r
+#define NSSM_REG_STDIO_COPY_AND_TRUNCATE _T("CopyAndTruncate")\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_ROTATE_DELAY _T("AppRotateDelay")\r
 #define NSSM_REG_PRIORITY _T("AppPriority")\r
 #define NSSM_REG_AFFINITY _T("AppAffinity")\r
 #define NSSM_REG_NO_CONSOLE _T("AppNoConsole")\r
+#define NSSM_REG_HOOK _T("AppEvents")\r
 #define NSSM_STDIO_LENGTH 29\r
 \r
+HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam, bool);\r
 HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam);\r
 HKEY open_registry(const TCHAR *, REGSAM sam);\r
 int create_messages();\r
@@ -55,5 +59,7 @@ void override_milliseconds(TCHAR *, HKEY, TCHAR *, unsigned long *, unsigned lon
 int get_io_parameters(nssm_service_t *, HKEY);\r
 int get_parameters(nssm_service_t *, STARTUPINFO *);\r
 int get_exit_action(const TCHAR *, unsigned long *, TCHAR *, bool *);\r
+int set_hook(const TCHAR *, const TCHAR *, const TCHAR *, TCHAR *);\r
+int get_hook(const TCHAR *, const TCHAR *, const TCHAR *, TCHAR *, unsigned long);\r
 \r
 #endif\r