2016-12-06 23:19:49 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Commands.h"
|
|
|
|
|
|
|
|
class CommandIgnore : 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:
|
|
|
|
|
|
|
|
CommandIgnore();
|
|
|
|
virtual ~CommandIgnore();
|
|
|
|
|
|
|
|
virtual bool CompareCommand(std::wstring& command);
|
|
|
|
virtual void LoadArgs(Arguments& args);
|
|
|
|
virtual void PerformCommand(Connection& connection);
|
2016-12-14 23:29:27 +00:00
|
|
|
|
|
|
|
virtual CommandPtr CreateInstance();
|
2016-12-06 23:19:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CommandUnignore : public ICommand
|
|
|
|
{
|
|
|
|
const wchar_t* m_command = nullptr;
|
|
|
|
|
2016-12-08 20:06:17 +00:00
|
|
|
enum ETargetIdType {
|
|
|
|
RuleId,
|
|
|
|
ProcId,
|
|
|
|
All
|
|
|
|
};
|
|
|
|
|
|
|
|
ETargetIdType m_targetType;
|
|
|
|
HidProcId m_targetProcId;
|
|
|
|
HidObjId m_targetId;
|
|
|
|
|
2016-12-06 23:19:49 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
CommandUnignore();
|
|
|
|
virtual ~CommandUnignore();
|
|
|
|
|
|
|
|
virtual bool CompareCommand(std::wstring& command);
|
|
|
|
virtual void LoadArgs(Arguments& args);
|
|
|
|
virtual void PerformCommand(Connection& connection);
|
2016-12-14 23:29:27 +00:00
|
|
|
|
|
|
|
virtual CommandPtr CreateInstance();
|
2016-12-06 23:19:49 +00:00
|
|
|
};
|