New function to retrieve values under a key.
+long enumerate_registry_values(HKEY key, unsigned long *index, TCHAR *name, unsigned long namelen) {\r
+ unsigned long type;\r
+ unsigned long datalen = namelen;\r
+ long error = RegEnumValue(key, *index, name, &datalen, 0, &type, 0, 0);\r
+ if (error == ERROR_SUCCESS) ++*index;\r
+ return error;\r
+}\r
+\r
int create_parameters(nssm_service_t *service, bool editing) {\r
/* Try to open the registry */\r
HKEY key = open_registry(service->name, KEY_WRITE);\r
int create_parameters(nssm_service_t *service, bool editing) {\r
/* Try to open the registry */\r
HKEY key = open_registry(service->name, KEY_WRITE);\r
HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam, bool);\r
HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam);\r
HKEY open_registry(const TCHAR *, REGSAM sam);\r
HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam, bool);\r
HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam);\r
HKEY open_registry(const TCHAR *, REGSAM sam);\r
+long enumerate_registry_values(HKEY, unsigned long *, TCHAR *, unsigned long);\r
int create_messages();\r
int create_parameters(nssm_service_t *, bool);\r
int create_exit_action(TCHAR *, const TCHAR *, bool);\r
int create_messages();\r
int create_parameters(nssm_service_t *, bool);\r
int create_exit_action(TCHAR *, const TCHAR *, bool);\r