Run hooks in response to certain events.
[nssm.git] / service.h
index 0394278..6a30af6 100644 (file)
--- a/service.h
+++ b/service.h
@@ -94,17 +94,25 @@ typedef struct {
   HANDLE process_handle;\r
   unsigned long pid;\r
   HANDLE wait_handle;\r
+  unsigned long exitcode;\r
   bool stopping;\r
   bool allow_restart;\r
   unsigned long throttle;\r
   CRITICAL_SECTION throttle_section;\r
   bool throttle_section_initialised;\r
+  CRITICAL_SECTION hook_section;\r
+  bool hook_section_initialised;\r
   CONDITION_VARIABLE throttle_condition;\r
   HANDLE throttle_timer;\r
   LARGE_INTEGER throttle_duetime;\r
+  FILETIME nssm_creation_time;\r
   FILETIME creation_time;\r
   FILETIME exit_time;\r
   TCHAR *initial_env;\r
+  unsigned long last_control;\r
+  unsigned long start_requested_count;\r
+  unsigned long start_count;\r
+  unsigned long exit_count;\r
 } nssm_service_t;\r
 \r
 void WINAPI service_main(unsigned long, TCHAR **);\r