mirror of
https://github.com/JKornev/hidden
synced 2024-06-16 12:08:05 +00:00
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "Commands.h"
|
|
|
|
class CommandHide : public ICommand, public ProcessParametersParser
|
|
{
|
|
const wchar_t* m_command = nullptr;
|
|
|
|
EObjTypes m_hideType;
|
|
HidRegRootTypes m_regRootType;
|
|
std::wstring m_path;
|
|
|
|
HidRegRootTypes GetTypeAndNormalizeRegPath(std::wstring& regPath);
|
|
|
|
public:
|
|
|
|
CommandHide();
|
|
virtual ~CommandHide();
|
|
|
|
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 CommandUnhide : public ICommand
|
|
{
|
|
const wchar_t* m_command = nullptr;
|
|
|
|
EObjTypes m_hideType;
|
|
HidObjId m_targetId;
|
|
bool m_targetAll;
|
|
|
|
public:
|
|
|
|
CommandUnhide();
|
|
virtual ~CommandUnhide();
|
|
|
|
virtual bool CompareCommand(std::wstring& command);
|
|
virtual void LoadArgs(Arguments& args, CommandModeType mode);
|
|
virtual void PerformCommand(Connection& connection);
|
|
|
|
virtual CommandPtr CreateInstance();
|
|
};
|