X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.h;h=1649bdf623f7efd006488882155ab356f9357aa8;hb=ffbcd9c99074239f1edd1a7d9a9a6c816ff893d8;hp=3e380b4ef4a22f665f5b1450ae35d0385e94341c;hpb=a90eade7d022451e92bedcebe816651df7bf0d17;p=nssm.git diff --git a/registry.h b/registry.h index 3e380b4..1649bdf 100644 --- a/registry.h +++ b/registry.h @@ -33,6 +33,7 @@ #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); @@ -58,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