6
0
mirror of https://github.com/JKornev/hidden synced 2024-06-27 09:28:04 +00:00
hidden/HiddenCLI/Protect.h

54 lines
1.1 KiB
C
Raw Normal View History

#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);
2016-12-14 23:29:27 +00:00
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);
2016-12-14 23:29:27 +00:00
virtual CommandPtr CreateInstance();
};