Command to show processes started by the service.
[nssm.git] / process.h
index de39cf0..3b4aab9 100644 (file)
--- a/process.h
+++ b/process.h
@@ -1,11 +1,13 @@
 #ifndef PROCESS_H\r
 #define PROCESS_H\r
 \r
+#include <psapi.h>\r
 #include <tlhelp32.h>\r
 \r
 typedef struct {\r
   TCHAR *name;\r
   HANDLE process_handle;\r
+  unsigned long depth;\r
   unsigned long pid;\r
   unsigned long exitcode;\r
   unsigned long stop_method;\r
@@ -33,6 +35,8 @@ int kill_console(nssm_service_t *, kill_t *);
 int kill_console(kill_t *);\r
 int kill_process(nssm_service_t *, kill_t *);\r
 int kill_process(kill_t *);\r
+int print_process(nssm_service_t *, kill_t *);\r
+int print_process(kill_t *);\r
 void walk_process_tree(nssm_service_t *, walk_function_t, kill_t *, unsigned long);\r
 void kill_process_tree(kill_t *, unsigned long);\r
 \r