process.h 656 B

12345678910111213141516171819202122
  1. #ifndef PROCESS_H
  2. #define PROCESS_H
  3. #include <tlhelp32.h>
  4. typedef struct {
  5. unsigned long pid;
  6. unsigned long exitcode;
  7. int signalled;
  8. } kill_t;
  9. int get_process_creation_time(HANDLE, FILETIME *);
  10. int get_process_exit_time(HANDLE, FILETIME *);
  11. int check_parent(TCHAR *, PROCESSENTRY32 *, unsigned long, FILETIME *, FILETIME *);
  12. int CALLBACK kill_window(HWND, LPARAM);
  13. int kill_threads(nssm_service_t *, kill_t *);
  14. int kill_console(nssm_service_t *);
  15. int kill_process(nssm_service_t *, HANDLE, unsigned long, unsigned long);
  16. void kill_process_tree(nssm_service_t *, unsigned long, unsigned long, unsigned long);
  17. int test_environment(TCHAR *);
  18. #endif