Textractor/GUI/HostInterop/HostInterop.h
2018-07-20 22:10:03 -04:00

47 lines
2.2 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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
{
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); }
};
public ref struct HookManager
{
//internal:
::HookManager* native;
};
public ref struct TextThread
{
//internal:
::TextThread* native;
};
public ref struct HookParam
{
//internal:
//::HookParam GetNative();
};
public ref struct ThreadParam
{
};
}