X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.h;h=1734d4e72289a359bac6b1bd7734bead94f8e2e9;hb=c03d51cbbfe9f4f8a28dbabbfc068573a1842b74;hp=555206313be78e27282818f8d82096fc8a39ac56;hpb=7fdd3f6c44421a7c4872ecea56e550c19489c949;p=nssm.git diff --git a/registry.h b/registry.h index 5552063..1734d4e 100644 --- a/registry.h +++ b/registry.h @@ -21,11 +21,13 @@ #define NSSM_REG_STDIO_DISPOSITION _T("CreationDisposition") #define NSSM_REG_STDIO_FLAGS _T("FlagsAndAttributes") #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_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); @@ -33,11 +35,13 @@ 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); int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool); +int set_string(HKEY, TCHAR *, TCHAR *, bool); +int set_string(HKEY, TCHAR *, TCHAR *); int set_expand_string(HKEY, TCHAR *, TCHAR *); int set_number(HKEY, TCHAR *, unsigned long); int get_number(HKEY, TCHAR *, unsigned long *, bool);