4 #define NSSM_REGISTRY "SYSTEM\\CurrentControlSet\\Services\\%s\\Parameters"
\r
5 #define NSSM_REG_EXE "Application"
\r
6 #define NSSM_REG_FLAGS "AppParameters"
\r
7 #define NSSM_REG_DIR "AppDirectory"
\r
8 #define NSSM_REG_ENV "AppEnvironment"
\r
9 #define NSSM_REG_EXIT "AppExit"
\r
10 #define NSSM_REG_THROTTLE "AppThrottle"
\r
11 #define NSSM_REG_STOP_METHOD_SKIP "AppStopMethodSkip"
\r
12 #define NSSM_REG_KILL_CONSOLE_GRACE_PERIOD "AppStopMethodConsole"
\r
13 #define NSSM_REG_KILL_WINDOW_GRACE_PERIOD "AppStopMethodWindow"
\r
14 #define NSSM_REG_KILL_THREADS_GRACE_PERIOD "AppStopMethodThreads"
\r
15 #define NSSM_REG_STDIN "AppStdin"
\r
16 #define NSSM_REG_STDOUT "AppStdout"
\r
17 #define NSSM_REG_STDERR "AppStderr"
\r
18 #define NSSM_REG_STDIO_SHARING "ShareMode"
\r
19 #define NSSM_REG_STDIO_DISPOSITION "CreationDisposition"
\r
20 #define NSSM_REG_STDIO_FLAGS "FlagsAndAttributes"
\r
21 #define NSSM_STDIO_LENGTH 29
\r
23 int create_messages();
\r
24 int create_parameters(char *, char *, char *, char *);
\r
25 int create_exit_action(char *, const char *);
\r
26 int set_environment(char *, HKEY, char **);
\r
27 int expand_parameter(HKEY, char *, char *, unsigned long, bool, bool);
\r
28 int expand_parameter(HKEY, char *, char *, unsigned long, bool);
\r
29 int get_number(HKEY, char *, unsigned long *, bool);
\r
30 int get_number(HKEY, char *, unsigned long *);
\r
31 void override_milliseconds(char *, HKEY, char *, unsigned long *, unsigned long, unsigned long);
\r
32 int get_parameters(char *, char *, unsigned long, char *, unsigned long, char *, unsigned long, char **, unsigned long *, unsigned long *, unsigned long *, unsigned long *, unsigned long *, STARTUPINFO *);
\r
33 int get_exit_action(char *, unsigned long *, unsigned char *, bool *);
\r