CrackThrough 96985e0a2c | ||
---|---|---|
src | ||
vendor | ||
.gitignore | ||
.gitmodules | ||
Cargo.toml | ||
README.md | ||
build.ps1 | ||
build.sh | ||
setup-targets.sh |
README.md
SkyHook-Native
dynamic library of SkyHook for use with other languages
Usage
The following examples are all in C#
Functions
The exported functions are simple. Just start_hook
and stop_hook
start_hook
public static delegate void HookCallback(NativeEvent ev);
[DllImport("skyhook", EntryPoint = "start_hook")]
public static extern void StartHook(HookCallback callback);
stop_hook
[DllImport("skyhook", EntryPoint = "stop_hook")]
public static extern void StopHook();
Types
NativeEventType
public enum NativeEventType {
KeyPressed,
KeyReleased
}
NativeEvent
[StructLayout(LayoutKind.Sequential)]
public struct NativeEvent
{
public readonly ulong Time;
public readonly EventType Type;
public readonly uint Key;
}
Development
git clone https://git.pikokr.dev/SkyHook/SkyHook-Native #Clone
to build, just run build.sh
on Linux of MacOS, build.ps1
on Windows