4 #define _WIN32_WINNT 0x0500
\r
9 #include "messages.h"
\r
10 #include "registry.h"
\r
11 #include "service.h"
\r
14 int str_equiv(const char *, const char *);
\r
17 #define NSSM_VERSION "2.5"
\r
18 #define NSSM_DATE "2010-09-25"
\r
19 #define NSSM_RUN "run"
\r
22 MSDN says the commandline in CreateProcess() is limited to 32768 characters
\r
23 and the application name to MAX_PATH.
\r
24 A registry key is limited to 255 characters.
\r
25 A registry value is limited to 16383 characters.
\r
26 Therefore we limit the service name to accommodate the path under HKLM.
\r
28 #define EXE_LENGTH MAX_PATH
\r
29 #define CMD_LENGTH 32768
\r
30 #define KEY_LENGTH 255
\r
31 #define VALUE_LENGTH 16383
\r
32 #define SERVICE_NAME_LENGTH KEY_LENGTH - 55
\r