EasyHook This 32-bit library does not exist, the user library does not export a proper run

If I do this:

 try
        {
            try
            {
                Config.Register(
                    "anydescription",
                    "myprogram.exe",
                    "inject.dll");
            }
            catch (ApplicationException ex)
            {
            }

            RemoteHooking.IpcCreateServer<interfaceppp>(ref ChannelName, WellKnownObjectMode.SingleCall);
            RemoteHooking.Inject(pid, "inject.dll", "inject.dll", ChannelName);

        }
        catch (Exception ExtInfo)
        {
        } 

      

I am getting this error:

STATUS_INVALID_PARAMETER_4: This 32-bit library does not exist!

I am using VS with admin rights. In bin folder I have all the required files AFAIK:

EasyHookFilesNeeded

I added easyhook.dll and easyload32 and 64 as a reference (why are these two new files? Haven't seen any documentation about them). THANK!

PD: Tried this with the same result:

 System.EnterpriseServices.Internal.Publish publish = new System.EnterpriseServices.Internal.Publish();
            publish.GacInstall("EasyHook.dll");
            publish.GacInstall("EasyHook32.dll");
            publish.GacInstall("EasyHook64.dll");
            publish.GacInstall("EasyLoad32.dll");
            publish.GacInstall("EasyLoad64.dll");

      

+3


source to share


2 answers


I don't know why it didn't work before. Obviously the problem was that some assemblies could not be found. After reading online, I saw an example without a function Config.Register

. It seems that with the latest version (2.7) you don't need to register assemblies with the GAC. I just commented out this function and it worked.



+1


source


I had the same problem but with 64-bit.

Removing my assemblies and EasyHook from the GAC fixed the issue.



gacutil /uf EasyHook
gacutil /uf EasyLoad64
gacutil /uf MyAssembly

      

+1


source







All Articles