Pass parameters around in a data structure.
[nssm.git] / process.h
index 95f87b2..165bb22 100644 (file)
--- a/process.h
+++ b/process.h
@@ -3,6 +3,19 @@
 
 #include <tlhelp32.h>
 
-void kill_process_tree(char *, unsigned long, unsigned long, unsigned long);
+typedef struct {
+  unsigned long pid;
+  unsigned long exitcode;
+  int signalled;
+} kill_t;
+
+int get_process_creation_time(HANDLE, FILETIME *);
+int get_process_exit_time(HANDLE, FILETIME *);
+int check_parent(char *, PROCESSENTRY32 *, unsigned long, FILETIME *, FILETIME *);
+int CALLBACK kill_window(HWND, LPARAM);
+int kill_threads(nssm_service_t *, kill_t *);
+int kill_console(nssm_service_t *);
+int kill_process(nssm_service_t *, HANDLE, unsigned long, unsigned long);
+void kill_process_tree(nssm_service_t *, unsigned long, unsigned long, unsigned long);
 
 #endif