EasyHook: STATUS_INVALID_PARAMETER_4: The given 32-Bit library does not exist! (Code: 2)

I have the following code:

var ipcServer = RemoteHooking.IpcCreateServer<IModInterface>(ref ChannelName, WellKnownObjectMode.SingleCall);

                    RemoteHooking.Inject(
                        TargetPID,
                        "test.dll",
                        "test.dll",
                        ChannelName);

                } catch (Exception ExtInfo) {
                    Console.WriteLine("There was an error while connecting to target:\r\n{0}", ExtInfo.ToString());
                }

In RemoteHooking.inject throw the following exception “STATUS_INVALID_PARAMETER_4: The given 32-Bit library does not exist! (Code: 2)”

I use visual studio 2015 with 4.0 .net framework.

In my project include the following libs directly:

EasyHook.dll
EasyHook32.dll
EasyHook64.dll
EasyLoad32.dll
EasyLoad64.dll
EasyHook32Svc.exe
EasyHook64Svc.exe

@spazzarama Can you hel me? please.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

I had this problem. My solution was to manually remove EasyHook from C:\Windows\Microsoft.NET\assembly\GAC_MSIL (preferably your loader and agent as well).

I was unable to get any output from fuslogvw.exe.