Skip to content

Instantly share code, notes, and snippets.

@NaxAlpha
NaxAlpha / HookFx.cs
Last active August 20, 2024 18:12
Windows API Hook with C#
using System;
using System.Runtime.InteropServices;
public class FxHook:IDisposable {
const int nBytes = 5;
IntPtr addr;
Protection old;
byte[] src = new byte[5];