2018-11-22 15:53:32 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.h"
|
2019-01-31 11:41:43 -05:00
|
|
|
#include "types.h"
|
2018-11-22 15:53:32 -05:00
|
|
|
|
|
|
|
namespace Util
|
|
|
|
{
|
2018-12-22 13:05:01 -05:00
|
|
|
std::optional<std::wstring> GetModuleFilename(DWORD processId, HMODULE module = NULL);
|
|
|
|
std::optional<std::wstring> GetModuleFilename(HMODULE module = NULL);
|
2018-11-22 15:53:32 -05:00
|
|
|
std::optional<std::wstring> GetClipboardText();
|
2019-02-16 00:33:38 -05:00
|
|
|
std::optional<std::wstring> StringToWideString(const std::string& text, UINT encoding = CP_UTF8);
|
2018-11-22 16:02:45 -05:00
|
|
|
// return true if repetition found (see https://github.com/Artikash/Textractor/issues/40)
|
2018-12-28 12:14:56 -05:00
|
|
|
bool RemoveRepetition(std::wstring& text);
|
2019-01-31 11:41:43 -05:00
|
|
|
std::optional<HookParam> ParseCode(std::wstring code);
|
|
|
|
std::wstring GenerateCode(HookParam hp, DWORD processId);
|
2018-11-22 15:53:32 -05:00
|
|
|
}
|