X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.h;h=7bf49b0bb1014082c2cdc1085344dca48f86b78c;hb=0dfa0fdb3a851b1ff69a0f0b308a3e1371286a57;hp=da3c8b8f70d46b612f2c9f5dd00027c0c0ba3987;hpb=c262633514e151f681f4d8234185e2212a959c27;p=nssm.git diff --git a/registry.h b/registry.h index da3c8b8..7bf49b0 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") @@ -27,6 +29,7 @@ #define NSSM_REG_ROTATE_BYTES_HIGH _T("AppRotateBytesHigh") #define NSSM_REG_PRIORITY _T("AppPriority") #define NSSM_REG_AFFINITY _T("AppAffinity") +#define NSSM_REG_NO_CONSOLE _T("AppNoConsole") #define NSSM_STDIO_LENGTH 29 HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam); @@ -34,9 +37,7 @@ HKEY open_registry(const TCHAR *, REGSAM sam); int create_messages(); int create_parameters(nssm_service_t *, bool); int create_exit_action(TCHAR *, const TCHAR *, bool); -int set_environment(TCHAR *, HKEY, TCHAR *, TCHAR **, unsigned long *); -int format_environment(TCHAR *, unsigned long, TCHAR **, unsigned long *); -int unformat_environment(TCHAR *, unsigned long, TCHAR **, unsigned long *); +int get_environment(TCHAR *, HKEY, TCHAR *, TCHAR **, unsigned long *); int get_string(HKEY, TCHAR *, TCHAR *, unsigned long, bool, bool, bool); int get_string(HKEY, TCHAR *, TCHAR *, unsigned long, bool); int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool, bool); @@ -47,7 +48,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 *);