NSSM 2.7.
[nssm.git] / nssm.h
1 #ifndef NSSM_H\r
2 #define NSSM_H\r
3 \r
4 #define _WIN32_WINNT 0x0500\r
5 #include <stdarg.h>\r
6 #include <stdio.h>\r
7 #include <windows.h>\r
8 #include "event.h"\r
9 #include "messages.h"\r
10 #include "process.h"\r
11 #include "registry.h"\r
12 #include "service.h"\r
13 #include "gui.h"\r
14 \r
15 int str_equiv(const char *, const char *);\r
16 \r
17 #define NSSM "nssm"\r
18 #define NSSM_VERSION "2.7"\r
19 #define NSSM_DATE "2011-01-25"\r
20 #define NSSM_RUN "run"\r
21 \r
22 /*\r
23   MSDN says the commandline in CreateProcess() is limited to 32768 characters\r
24   and the application name to MAX_PATH.\r
25   A registry key is limited to 255 characters.\r
26   A registry value is limited to 16383 characters.\r
27   Therefore we limit the service name to accommodate the path under HKLM.\r
28 */\r
29 #define EXE_LENGTH MAX_PATH\r
30 #define CMD_LENGTH 32768\r
31 #define KEY_LENGTH 255\r
32 #define VALUE_LENGTH 16383\r
33 #define SERVICE_NAME_LENGTH KEY_LENGTH - 55\r
34 \r
35 #endif\r