unknownv2 / CoreHook

A library that simplifies intercepting application function calls using managed code and the .NET Core runtime
MIT License
259 stars 40 forks source link

Allow user to specify unmanaged callback object #131

Closed unknownv2 closed 5 years ago

unknownv2 commented 5 years ago

Instead of defaulting to IntPtr.Zero, allow the user to set a callback object when creating unmanaged hooks since you could for example create an object with an unmanaged export and then use the address from that call to pass to the hook creation to be used inside the native detour function.