Textractor/GUI/HostInterop/HostInterop.h

47 lines
2.2 KiB
C
Raw Normal View History

<EFBFBD><EFBFBD>#pragma once
#include "../../texthook/hookman.h"
#include "../../texthook/textthread.h"
#include "../../texthook/host.h"
using namespace System;
namespace HostInterop
{
public ref struct Host abstract sealed
{
2018-07-20 22:10:03 -04:00
static void Open() { OpenHost(); }
static bool Start() { return StartHost(); }
static void Close() { CloseHost(); }
//static void InitHookManager(HookManager uninit) { uninit.native = GetHostHookManager(); }
static bool InjectProcessById(DWORD pid) { return ::InjectProcessById(pid); }
static bool DetachProcessById(DWORD pid) { return ::DetachProcessById(pid); }
//static bool InsertHook(DWORD pid, HookParam hp, std::string name) { return ::InsertHook(pid, hp.GetNative()); };
static bool RemoveHook(DWORD pid, DWORD addr) { return ::RemoveHook(pid, addr); }
2018-07-20 17:18:27 -04:00
};
public ref struct HookManager
{
2018-07-20 22:10:03 -04:00
//internal:
::HookManager* native;
2018-07-20 17:18:27 -04:00
};
public ref struct TextThread
{
2018-07-20 22:10:03 -04:00
//internal:
::TextThread* native;
2018-07-20 17:18:27 -04:00
};
public ref struct HookParam
{
2018-07-20 22:10:03 -04:00
//internal:
//::HookParam GetNative();
2018-07-20 17:18:27 -04:00
};
public ref struct ThreadParam
{
};
}