Textractor_test/GUI/host/util.h

18 lines
670 B
C
Raw Normal View History

#pragma once
#include "common.h"
#include "types.h"
namespace Util
{
std::optional<std::wstring> GetModuleFilename(DWORD processId, HMODULE module = NULL);
std::optional<std::wstring> GetModuleFilename(HMODULE module = NULL);
2019-02-19 11:39:04 +08:00
std::vector<DWORD> GetAllProcessIds();
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);
2018-11-23 05:02:45 +08:00
// return true if repetition found (see https://github.com/Artikash/Textractor/issues/40)
2018-12-29 01:14:56 +08:00
bool RemoveRepetition(std::wstring& text);
std::optional<HookParam> ParseCode(std::wstring code);
std::wstring GenerateCode(HookParam hp, DWORD processId);
}