C# 优雅的 APIHOOK 支持X86+X64源码
usingSystem;usingSystem.Runtime.InteropServices;namespaceNativeHook.Test{publicdelegateInt32MessageBoxW(IntPtrhWnd,[MarshalAs(UnmanagedType.LPWStr)]stringlpText,[MarshalAs(UnmanagedType.LPWStr)]stringlpCaption,UInt32uType);publicclassMessageBoxHook:NtAP