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

Unable to find an entry point named 'LhInstallHook' in DLL 'corehook32.dll' #13

Closed Trojaner closed 6 years ago

Trojaner commented 6 years ago

I have renamed the easyhook dll to corehook32 as it stated on CoreHook.Hooking repository.

System.EntryPointNotFoundException: Unable to find an entry point named 'LhInstallHook' in DLL 'corehook32.dll'.
    at CoreHook.LocalHook.Create(IntPtr InTargetProc, Delegate InNewProc, Object InCallback) 

Happens at:

var hook = LocalHook.Create(originalMethodAddress, _callback, null);
Trojaner commented 6 years ago

Updating to latest EasyHook dlls fixed the issue

unknownv2 commented 6 years ago

That's good to hear, I've also added a pre-release for the binaries for CoreHook.Hooking here while I'm still working on getting the project to NuGet:

https://github.com/unknownv2/CoreHook.Hooking/releases/tag/0.0.1