You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
631 B
C

#ifndef PROCESS_H
#define PROCESS_H
#include <tlhelp32.h>
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(char *, kill_t *);
int kill_process(char *, HANDLE, unsigned long, unsigned long);
int kill_console(char *, HANDLE, unsigned long);
void kill_process_tree(char *, unsigned long, unsigned long, unsigned long, FILETIME *, FILETIME *);
#endif