Allow compiling as a Unicode application.
[nssm.git] / registry.h
index 3c64b5d..ffdf3d6 100644 (file)
@@ -1,38 +1,38 @@
 #ifndef REGISTRY_H\r
 #define REGISTRY_H\r
 \r
-#define NSSM_REGISTRY "SYSTEM\\CurrentControlSet\\Services\\%s\\Parameters"\r
-#define NSSM_REG_EXE "Application"\r
-#define NSSM_REG_FLAGS "AppParameters"\r
-#define NSSM_REG_DIR "AppDirectory"\r
-#define NSSM_REG_ENV "AppEnvironment"\r
-#define NSSM_REG_ENV_EXTRA "AppEnvironmentExtra"\r
-#define NSSM_REG_EXIT "AppExit"\r
-#define NSSM_REG_THROTTLE "AppThrottle"\r
-#define NSSM_REG_STOP_METHOD_SKIP "AppStopMethodSkip"\r
-#define NSSM_REG_KILL_CONSOLE_GRACE_PERIOD "AppStopMethodConsole"\r
-#define NSSM_REG_KILL_WINDOW_GRACE_PERIOD "AppStopMethodWindow"\r
-#define NSSM_REG_KILL_THREADS_GRACE_PERIOD "AppStopMethodThreads"\r
-#define NSSM_REG_STDIN "AppStdin"\r
-#define NSSM_REG_STDOUT "AppStdout"\r
-#define NSSM_REG_STDERR "AppStderr"\r
-#define NSSM_REG_STDIO_SHARING "ShareMode"\r
-#define NSSM_REG_STDIO_DISPOSITION "CreationDisposition"\r
-#define NSSM_REG_STDIO_FLAGS "FlagsAndAttributes"\r
+#define NSSM_REGISTRY _T("SYSTEM\\CurrentControlSet\\Services\\%s\\Parameters")\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_ENV _T("AppEnvironment")\r
+#define NSSM_REG_ENV_EXTRA _T("AppEnvironmentExtra")\r
+#define NSSM_REG_EXIT _T("AppExit")\r
+#define NSSM_REG_THROTTLE _T("AppThrottle")\r
+#define NSSM_REG_STOP_METHOD_SKIP _T("AppStopMethodSkip")\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_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_STDIO_LENGTH 29\r
 \r
 int create_messages();\r
 int create_parameters(nssm_service_t *);\r
-int create_exit_action(char *, const char *);\r
-int set_environment(char *, HKEY, char *, char **, unsigned long *);\r
-int expand_parameter(HKEY, char *, char *, unsigned long, bool, bool);\r
-int expand_parameter(HKEY, char *, char *, unsigned long, bool);\r
-int set_expand_string(HKEY, char *, char *);\r
-int set_number(HKEY, char *, unsigned long);\r
-int get_number(HKEY, char *, unsigned long *, bool);\r
-int get_number(HKEY, char *, unsigned long *);\r
-void override_milliseconds(char *, HKEY, char *, unsigned long *, unsigned long, unsigned long);\r
+int create_exit_action(TCHAR *, const TCHAR *);\r
+int set_environment(TCHAR *, HKEY, TCHAR *, TCHAR **, unsigned long *);\r
+int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool, bool);\r
+int expand_parameter(HKEY, TCHAR *, TCHAR *, unsigned long, bool);\r
+int set_expand_string(HKEY, TCHAR *, TCHAR *);\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
+void override_milliseconds(TCHAR *, HKEY, TCHAR *, unsigned long *, unsigned long, unsigned long);\r
 int get_parameters(nssm_service_t *, STARTUPINFO *);\r
-int get_exit_action(char *, unsigned long *, unsigned char *, bool *);\r
+int get_exit_action(TCHAR *, unsigned long *, TCHAR *, bool *);\r
 \r
 #endif\r