git://git.iain.cx/iain
/
nssm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Not an error if no hook found in the registry.
[nssm.git]
/
registry.h
diff --git
a/registry.h
b/registry.h
index
aa14e00
..
0580aff
100644
(file)
--- a/
registry.h
+++ b/
registry.h
@@
-1,7
+1,10
@@
#ifndef REGISTRY_H
\r
#define REGISTRY_H
\r
\r
#ifndef REGISTRY_H
\r
#define REGISTRY_H
\r
\r
-#define NSSM_REGISTRY _T("SYSTEM\\CurrentControlSet\\Services\\%s\\Parameters")
\r
+#define NSSM_REGISTRY _T("SYSTEM\\CurrentControlSet\\Services\\%s")
\r
+#define NSSM_REG_PARAMETERS _T("Parameters")
\r
+#define NSSM_REGISTRY_GROUPS _T("SYSTEM\\CurrentControlSet\\Control\\ServiceGroupOrder")
\r
+#define NSSM_REG_GROUPS _T("List")
\r
#define NSSM_REG_EXE _T("Application")
\r
#define NSSM_REG_FLAGS _T("AppParameters")
\r
#define NSSM_REG_DIR _T("AppDirectory")
\r
#define NSSM_REG_EXE _T("Application")
\r
#define NSSM_REG_FLAGS _T("AppParameters")
\r
#define NSSM_REG_DIR _T("AppDirectory")
\r
@@
-14,21
+17,29
@@
#define NSSM_REG_KILL_CONSOLE_GRACE_PERIOD _T("AppStopMethodConsole")
\r
#define NSSM_REG_KILL_WINDOW_GRACE_PERIOD _T("AppStopMethodWindow")
\r
#define NSSM_REG_KILL_THREADS_GRACE_PERIOD _T("AppStopMethodThreads")
\r
#define NSSM_REG_KILL_CONSOLE_GRACE_PERIOD _T("AppStopMethodConsole")
\r
#define NSSM_REG_KILL_WINDOW_GRACE_PERIOD _T("AppStopMethodWindow")
\r
#define NSSM_REG_KILL_THREADS_GRACE_PERIOD _T("AppStopMethodThreads")
\r
+#define NSSM_REG_KILL_PROCESS_TREE _T("AppKillProcessTree")
\r
#define NSSM_REG_STDIN _T("AppStdin")
\r
#define NSSM_REG_STDOUT _T("AppStdout")
\r
#define NSSM_REG_STDERR _T("AppStderr")
\r
#define NSSM_REG_STDIO_SHARING _T("ShareMode")
\r
#define NSSM_REG_STDIO_DISPOSITION _T("CreationDisposition")
\r
#define NSSM_REG_STDIO_FLAGS _T("FlagsAndAttributes")
\r
#define NSSM_REG_STDIN _T("AppStdin")
\r
#define NSSM_REG_STDOUT _T("AppStdout")
\r
#define NSSM_REG_STDERR _T("AppStderr")
\r
#define NSSM_REG_STDIO_SHARING _T("ShareMode")
\r
#define NSSM_REG_STDIO_DISPOSITION _T("CreationDisposition")
\r
#define NSSM_REG_STDIO_FLAGS _T("FlagsAndAttributes")
\r
+#define NSSM_REG_STDIO_COPY_AND_TRUNCATE _T("CopyAndTruncate")
\r
#define NSSM_REG_ROTATE _T("AppRotateFiles")
\r
#define NSSM_REG_ROTATE_ONLINE _T("AppRotateOnline")
\r
#define NSSM_REG_ROTATE_SECONDS _T("AppRotateSeconds")
\r
#define NSSM_REG_ROTATE_BYTES_LOW _T("AppRotateBytes")
\r
#define NSSM_REG_ROTATE_BYTES_HIGH _T("AppRotateBytesHigh")
\r
#define NSSM_REG_ROTATE _T("AppRotateFiles")
\r
#define NSSM_REG_ROTATE_ONLINE _T("AppRotateOnline")
\r
#define NSSM_REG_ROTATE_SECONDS _T("AppRotateSeconds")
\r
#define NSSM_REG_ROTATE_BYTES_LOW _T("AppRotateBytes")
\r
#define NSSM_REG_ROTATE_BYTES_HIGH _T("AppRotateBytesHigh")
\r
+#define NSSM_REG_ROTATE_DELAY _T("AppRotateDelay")
\r
#define NSSM_REG_PRIORITY _T("AppPriority")
\r
#define NSSM_REG_AFFINITY _T("AppAffinity")
\r
#define NSSM_REG_PRIORITY _T("AppPriority")
\r
#define NSSM_REG_AFFINITY _T("AppAffinity")
\r
+#define NSSM_REG_NO_CONSOLE _T("AppNoConsole")
\r
+#define NSSM_REG_HOOK _T("AppEvents")
\r
#define NSSM_STDIO_LENGTH 29
\r
\r
#define NSSM_STDIO_LENGTH 29
\r
\r
+HKEY open_service_registry(const TCHAR *, REGSAM sam, bool);
\r
+long open_registry(const TCHAR *, const TCHAR *, REGSAM sam, HKEY *, bool);
\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
int create_messages();
\r
HKEY open_registry(const TCHAR *, const TCHAR *, REGSAM sam);
\r
HKEY open_registry(const TCHAR *, REGSAM sam);
\r
int create_messages();
\r
@@
-45,8
+56,13
@@
int set_expand_string(HKEY, TCHAR *, TCHAR *);
int set_number(HKEY, TCHAR *, unsigned long);
\r
int get_number(HKEY, TCHAR *, unsigned long *, bool);
\r
int get_number(HKEY, TCHAR *, unsigned long *);
\r
int set_number(HKEY, TCHAR *, unsigned long);
\r
int get_number(HKEY, TCHAR *, unsigned long *, bool);
\r
int get_number(HKEY, TCHAR *, unsigned long *);
\r
+int format_double_null(TCHAR *, unsigned long, TCHAR **, unsigned long *);
\r
+int unformat_double_null(TCHAR *, unsigned long, TCHAR **, unsigned long *);
\r
void override_milliseconds(TCHAR *, HKEY, TCHAR *, unsigned long *, unsigned long, unsigned long);
\r
void override_milliseconds(TCHAR *, HKEY, TCHAR *, unsigned long *, unsigned long, unsigned long);
\r
+int get_io_parameters(nssm_service_t *, HKEY);
\r
int get_parameters(nssm_service_t *, STARTUPINFO *);
\r
int get_exit_action(const TCHAR *, unsigned long *, TCHAR *, bool *);
\r
int get_parameters(nssm_service_t *, STARTUPINFO *);
\r
int get_exit_action(const TCHAR *, unsigned long *, TCHAR *, bool *);
\r
+int set_hook(const TCHAR *, const TCHAR *, const TCHAR *, TCHAR *);
\r
+int get_hook(const TCHAR *, const TCHAR *, const TCHAR *, TCHAR *, unsigned long);
\r
\r
#endif
\r
\r
#endif
\r