MinecraftConsoles/Minecraft.Server/FourKitRuntime.h
2026-03-24 21:13:15 -05:00

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);
}