2018-11-23 04:53:32 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.h"
|
2019-02-01 00:41:43 +08:00
|
|
|
#include "types.h"
|
2018-11-23 04:53:32 +08:00
|
|
|
|
|
|
|
namespace Util
|
|
|
|
{
|
2018-12-23 02:05:01 +08:00
|
|
|
std::optional<std::wstring> GetModuleFilename(DWORD processId, HMODULE module = NULL);
|
|
|
|
std::optional<std::wstring> GetModuleFilename(HMODULE module = NULL);
|
2019-06-27 15:09:44 +08:00
|
|
|
std::vector<std::pair<DWORD, std::optional<std::wstring>>> GetAllProcesses();
|
2018-11-23 04:53:32 +08:00
|
|
|
std::optional<std::wstring> GetClipboardText();
|
2019-02-16 13:33:38 +08:00
|
|
|
std::optional<std::wstring> StringToWideString(const std::string& text, UINT encoding = CP_UTF8);
|
2019-02-01 00:41:43 +08:00
|
|
|
std::optional<HookParam> ParseCode(std::wstring code);
|
|
|
|
std::wstring GenerateCode(HookParam hp, DWORD processId);
|
2018-11-23 04:53:32 +08:00
|
|
|
}
|