Try to build PDB files even for releases.
[nssm.git] / service.h
index 6a30af6..46664de 100644 (file)
--- a/service.h
+++ b/service.h
@@ -61,6 +61,8 @@ typedef struct {
   unsigned long stdout_sharing;\r
   unsigned long stdout_disposition;\r
   unsigned long stdout_flags;\r
+  bool use_stdout_pipe;\r
+  HANDLE stdout_si;\r
   HANDLE stdout_pipe;\r
   HANDLE stdout_thread;\r
   unsigned long stdout_tid;\r
@@ -68,10 +70,14 @@ typedef struct {
   unsigned long stderr_sharing;\r
   unsigned long stderr_disposition;\r
   unsigned long stderr_flags;\r
+  bool use_stderr_pipe;\r
+  HANDLE stderr_si;\r
   HANDLE stderr_pipe;\r
   HANDLE stderr_thread;\r
   unsigned long stderr_tid;\r
+  bool hook_share_output_handles;\r
   bool rotate_files;\r
+  bool timestamp_log;\r
   bool stdout_copy_and_truncate;\r
   bool stderr_copy_and_truncate;\r
   unsigned long rotate_stdout_online;\r
@@ -133,6 +139,8 @@ void cleanup_nssm_service(nssm_service_t *);
 SC_HANDLE open_service_manager(unsigned long);\r
 SC_HANDLE open_service(SC_HANDLE, TCHAR *, unsigned long, TCHAR *, unsigned long);\r
 QUERY_SERVICE_CONFIG *query_service_config(const TCHAR *, SC_HANDLE);\r
+int append_to_dependencies(TCHAR *, unsigned long, TCHAR *, TCHAR **, unsigned long *, int);\r
+int remove_from_dependencies(TCHAR *, unsigned long, TCHAR *, TCHAR **, unsigned long *, int);\r
 int set_service_dependencies(const TCHAR *, SC_HANDLE, TCHAR *);\r
 int get_service_dependencies(const TCHAR *, SC_HANDLE, TCHAR **, unsigned long *, int);\r
 int get_service_dependencies(const TCHAR *, SC_HANDLE, TCHAR **, unsigned long *);\r
@@ -140,12 +148,15 @@ int set_service_description(const TCHAR *, SC_HANDLE, TCHAR *);
 int get_service_description(const TCHAR *, SC_HANDLE, unsigned long, TCHAR *);\r
 int get_service_startup(const TCHAR *, SC_HANDLE, const QUERY_SERVICE_CONFIG *, unsigned long *);\r
 int get_service_username(const TCHAR *, const QUERY_SERVICE_CONFIG *, TCHAR **, size_t *);\r
+void set_service_environment(nssm_service_t *);\r
+void unset_service_environment(nssm_service_t *);\r
 int pre_install_service(int, TCHAR **);\r
 int pre_remove_service(int, TCHAR **);\r
 int pre_edit_service(int, TCHAR **);\r
 int install_service(nssm_service_t *);\r
 int remove_service(nssm_service_t *);\r
 int edit_service(nssm_service_t *, bool);\r
+int control_service(unsigned long, int, TCHAR **, bool);\r
 int control_service(unsigned long, int, TCHAR **);\r
 void set_service_recovery(nssm_service_t *);\r
 int monitor_service(nssm_service_t *);\r
@@ -154,5 +165,7 @@ int stop_service(nssm_service_t *, unsigned long, bool, bool);
 void CALLBACK end_service(void *, unsigned char);\r
 void throttle_restart(nssm_service_t *);\r
 int await_single_handle(SERVICE_STATUS_HANDLE, SERVICE_STATUS *, HANDLE, TCHAR *, TCHAR *, unsigned long);\r
+int list_nssm_services(int, TCHAR **);\r
+int service_process_tree(int, TCHAR **);\r
 \r
 #endif\r