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
487 B
C#
Raw Normal View History

2022-11-03 20:55:22 +09:00
using System.Runtime.InteropServices;
namespace SkyHook
{
internal 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();
}
}