This repository has been archived on 2023-05-28. You can view files and clone it, but cannot push or open issues/pull-requests.
SkyHook-Unity/Runtime/SkyHookNative.cs

17 lines
494 B
C#

using System.Runtime.InteropServices;
namespace SkyHook
{
internal static class SkyHookNative
{
public delegate void Callback(SkyHookEvent ev);
private const string Lib = "skyhook";
[DllImport(Lib, EntryPoint = "start_hook", CallingConvention = CallingConvention.Cdecl)]
public static extern string StartHook(Callback callback);
[DllImport(Lib, EntryPoint = "stop_hook", CallingConvention = CallingConvention.Cdecl)]
public static extern string StopHook();
}
}