mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-25 08:27:28 +00:00
25 lines
749 B
C++
25 lines
749 B
C++
#pragma once
|
|
|
|
#define UNMANAGEDCALLERSONLY_METHOD ((const wchar_t *)-1)
|
|
|
|
namespace FourKitBridge
|
|
{
|
|
typedef int(__stdcall *load_assembly_fn)(
|
|
const wchar_t *assembly_path,
|
|
const wchar_t *type_name,
|
|
const wchar_t *method_name,
|
|
const wchar_t *delegate_type_name,
|
|
void *reserved,
|
|
void **delegate);
|
|
|
|
bool LoadManagedRuntime(const wchar_t *runtimeConfigPath,
|
|
const wchar_t *hostPath,
|
|
load_assembly_fn *outLoadAssembly);
|
|
|
|
bool GetManagedEntryPoint(load_assembly_fn loadAssembly,
|
|
const wchar_t *assemblyPath,
|
|
const wchar_t *typeName,
|
|
const wchar_t *methodName,
|
|
void **outFnPtr);
|
|
}
|