3



I'm trying to inject a dll using EasyHook's

RemoteHooking.Inject(pid, InjectionOptions.Default, debug_dllPath_32, debug_dllPath_64, channel);

Unfortunately this throws an ArgumentException "STATUS_INVALID_PARAMETER_4: The given 32-Bit library does not exist! (Code: 2)" although im 100% sure the path is correct and that the dll referenced is a 32-bit library (Platform Target: x86)


Before that I register the dll's in the GAC using

Config.Register("desc", debug_dllPath_32, debug_dllPath_64);


Where is my mistake?

1 Answers1

2

That is because EasyLoad32/64.dll are not correctly present.


Now this is pretty easy to solve
  • Install EasyLoad32/64.dll in GAC
  • include EasyLoad32/64.dll in application directly

Please feel free to ask any questions you might have.

Edit: Found same question here, Link

Community
  • 1
  • 1
  • I added the paths to EasyLoad32.dll and EasyLoad64.dll to the Config.Register call and tried to install them to the GAC using gacutil.exe but the problem still occurs – coffeeandtv Jul 31 '15 at 14:02
  • 2
    After reading another post I found out that it works perfectly fine if you just don't call Config.Register and don't register the the assemblies to the GAC at all, still thanks for the effort – coffeeandtv Aug 02 '15 at 15:33