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