X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.h;h=bd8ee4146d366100cb9662403761c52a92f05835;hb=f7f20a0b3ecbb0e1a2eb59f95b50f0625b37c671;hp=1734d4e72289a359bac6b1bd7734bead94f8e2e9;hpb=c03d51cbbfe9f4f8a28dbabbfc068573a1842b74;p=nssm.git diff --git a/registry.h b/registry.h index 1734d4e..bd8ee41 100644 --- a/registry.h +++ b/registry.h @@ -2,6 +2,8 @@ #define REGISTRY_H #define NSSM_REGISTRY _T("SYSTEM\\CurrentControlSet\\Services\\%s\\Parameters") +#define NSSM_REGISTRY_GROUPS _T("SYSTEM\\CurrentControlSet\\Control\\ServiceGroupOrder") +#define NSSM_REG_GROUPS _T("List") #define NSSM_REG_EXE _T("Application") #define NSSM_REG_FLAGS _T("AppParameters") #define NSSM_REG_DIR _T("AppDirectory") @@ -14,17 +16,20 @@ #define NSSM_REG_KILL_CONSOLE_GRACE_PERIOD _T("AppStopMethodConsole") #define NSSM_REG_KILL_WINDOW_GRACE_PERIOD _T("AppStopMethodWindow") #define NSSM_REG_KILL_THREADS_GRACE_PERIOD _T("AppStopMethodThreads") +#define NSSM_REG_KILL_PROCESS_TREE _T("AppKillProcessTree") #define NSSM_REG_STDIN _T("AppStdin") #define NSSM_REG_STDOUT _T("AppStdout") #define NSSM_REG_STDERR _T("AppStderr") #define NSSM_REG_STDIO_SHARING _T("ShareMode") #define NSSM_REG_STDIO_DISPOSITION _T("CreationDisposition") #define NSSM_REG_STDIO_FLAGS _T("FlagsAndAttributes") +#define NSSM_REG_STDIO_COPY_AND_TRUNCATE _T("CopyAndTruncate") #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_ROTATE_DELAY _T("AppRotateDelay") #define NSSM_REG_PRIORITY _T("AppPriority") #define NSSM_REG_AFFINITY _T("AppAffinity") #define NSSM_REG_NO_CONSOLE _T("AppNoConsole") @@ -46,7 +51,10 @@ int set_expand_string(HKEY, TCHAR *, TCHAR *); int set_number(HKEY, TCHAR *, unsigned long); int get_number(HKEY, TCHAR *, unsigned long *, bool); int get_number(HKEY, TCHAR *, unsigned long *); +int format_double_null(TCHAR *, unsigned long, TCHAR **, unsigned long *); +int unformat_double_null(TCHAR *, unsigned long, TCHAR **, unsigned long *); void override_milliseconds(TCHAR *, HKEY, TCHAR *, unsigned long *, unsigned long, unsigned long); +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 *);