12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef BOINC_PROC_CONTROL_H
- #define BOINC_PROC_CONTROL_H
- #include <vector>
- #ifdef _WIN32
- #include <windows.h>
- #endif
- extern void get_descendants(int pid, std::vector<int>& pids);
- extern bool any_process_exists(std::vector<int>& pids);
- extern void kill_all(std::vector<int>& pids);
- #ifdef _WIN32
- extern void kill_descendants();
- extern int suspend_or_resume_threads(
- std::vector<int> pids, DWORD threadid, bool resume, bool check_exempt
- );
- #else
- extern void kill_descendants(int child_pid=0);
- #endif
- extern void suspend_or_resume_descendants(bool resume);
- extern void suspend_or_resume_process(int pid, bool resume);
- extern int process_priority_value(int);
- #endif
|