2016-12-08 20:06:17 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Commands.h"
|
|
|
|
|
2021-07-25 18:32:03 +00:00
|
|
|
class CommandProtect : public ICommand, public ProcessParametersParser
|
2016-12-08 20:06:17 +00:00
|
|
|
{
|
|
|
|
const wchar_t* m_command = nullptr;
|
|
|
|
|
|
|
|
EProcTypes m_procType;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
CommandProtect();
|
|
|
|
virtual ~CommandProtect();
|
|
|
|
|
|
|
|
virtual bool CompareCommand(std::wstring& command);
|
2016-12-23 20:31:26 +00:00
|
|
|
virtual void LoadArgs(Arguments& args, CommandModeType mode);
|
2016-12-08 20:06:17 +00:00
|
|
|
virtual void PerformCommand(Connection& connection);
|
2016-12-23 20:31:26 +00:00
|
|
|
virtual void InstallCommand(RegistryKey& configKey);
|
|
|
|
virtual void UninstallCommand(RegistryKey& configKey);
|
2016-12-14 23:29:27 +00:00
|
|
|
|
|
|
|
virtual CommandPtr CreateInstance();
|
2016-12-08 20:06:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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);
|
2016-12-23 20:31:26 +00:00
|
|
|
virtual void LoadArgs(Arguments& args, CommandModeType mode);
|
2016-12-08 20:06:17 +00:00
|
|
|
virtual void PerformCommand(Connection& connection);
|
2016-12-14 23:29:27 +00:00
|
|
|
|
|
|
|
virtual CommandPtr CreateInstance();
|
2016-12-08 20:06:17 +00:00
|
|
|
};
|