forked from JKornev/hidden
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProtect.h
53 lines (39 loc) · 1.12 KB
/
Protect.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
#pragma once
#include "Commands.h"
class CommandProtect : public ICommand
{
const wchar_t* m_command = nullptr;
EProcTypes m_procType;
std::wstring m_targetImage;
HidProcId m_targetProcId;
HidPsInheritTypes m_inheritType;
bool m_applyByDefault;
public:
CommandProtect();
virtual ~CommandProtect();
virtual bool CompareCommand(std::wstring& command);
virtual void LoadArgs(Arguments& args, CommandModeType mode);
virtual void PerformCommand(Connection& connection);
virtual void InstallCommand(RegistryKey& configKey);
virtual void UninstallCommand(RegistryKey& configKey);
virtual CommandPtr CreateInstance();
};
class CommandUnprotect : public ICommand
{
const wchar_t* m_command = nullptr;
enum ETargetIdType {
RuleId,
ProcId,
All
};
ETargetIdType m_targetType;
HidProcId m_targetProcId;
HidObjId m_targetId;
public:
CommandUnprotect();
virtual ~CommandUnprotect();
virtual bool CompareCommand(std::wstring& command);
virtual void LoadArgs(Arguments& args, CommandModeType mode);
virtual void PerformCommand(Connection& connection);
virtual CommandPtr CreateInstance();
};