2016-12-09 20:27:27 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Commands.h"
|
|
|
|
|
|
|
|
class CommandQuery : public ICommand
|
|
|
|
{
|
2016-12-12 20:40:35 +00:00
|
|
|
enum EQueryType {
|
|
|
|
QueryProcess,
|
|
|
|
QueryState,
|
|
|
|
};
|
|
|
|
|
2016-12-09 20:27:27 +00:00
|
|
|
const wchar_t* m_command = nullptr;
|
|
|
|
|
2016-12-12 20:40:35 +00:00
|
|
|
EQueryType m_queryType;
|
|
|
|
HidProcId m_targetProcId;
|
2016-12-09 20:27:27 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
CommandQuery();
|
|
|
|
virtual ~CommandQuery();
|
|
|
|
|
|
|
|
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-09 20:27:27 +00:00
|
|
|
};
|
|
|
|
|