X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=process.h;h=165bb225e4677a70163bf3aaa002d0da8617284b;hb=728c4f6eb96313e764600810aa754663a5091f38;hp=95f87b2c4815d5b20e7e0a156e0f0ed60d61383f;hpb=8d8036e4f1be4ba52898170345a9f8be0f327238;p=nssm.git diff --git a/process.h b/process.h index 95f87b2..165bb22 100644 --- a/process.h +++ b/process.h @@ -3,6 +3,19 @@ #include -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