X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.h;h=1649bdf623f7efd006488882155ab356f9357aa8;hb=2f2f64b07611fe0709bf4d502de7cac292dc1975;hp=bd8ee4146d366100cb9662403761c52a92f05835;hpb=f7f20a0b3ecbb0e1a2eb59f95b50f0625b37c671;p=nssm.git diff --git a/registry.h b/registry.h index bd8ee41..1649bdf 100644 --- a/registry.h +++ b/registry.h @@ -33,8 +33,10 @@ #define NSSM_REG_PRIORITY _T("AppPriority") #define NSSM_REG_AFFINITY _T("AppAffinity") #define NSSM_REG_NO_CONSOLE _T("AppNoConsole") +#define NSSM_REG_HOOK _T("AppEvents") #define NSSM_STDIO_LENGTH 29 +HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam, bool); HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam); HKEY open_registry(const TCHAR *, REGSAM sam); int create_messages(); @@ -57,5 +59,7 @@ void override_milliseconds(TCHAR *, HKEY, TCHAR *, unsigned long *, unsigned lon int get_io_parameters(nssm_service_t *, HKEY); int get_parameters(nssm_service_t *, STARTUPINFO *); int get_exit_action(const TCHAR *, unsigned long *, TCHAR *, bool *); +int set_hook(const TCHAR *, const TCHAR *, const TCHAR *, TCHAR *); +int get_hook(const TCHAR *, const TCHAR *, const TCHAR *, TCHAR *, unsigned long); #endif