26 lines
596 B
C++
26 lines
596 B
C++
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <string>
|
|
|
|
namespace hook
|
|
{
|
|
inline constexpr wchar_t kConfigKey[] = L"Software\\Plandent\\MstscScriptHook";
|
|
|
|
struct HookConfig
|
|
{
|
|
bool enabled = true;
|
|
std::wstring scriptPath;
|
|
std::wstring arguments;
|
|
std::wstring workingDirectory;
|
|
bool startOnConnect = true;
|
|
bool stopOnDisconnect = false;
|
|
bool hidden = true;
|
|
bool preventDuplicates = true;
|
|
bool enableLogging = true;
|
|
};
|
|
|
|
HookConfig LoadConfig();
|
|
std::wstring ExpandEnvironment(const std::wstring& value);
|
|
}
|