If I do:
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 get this error:
STATUS_INVALID_PARAMETER_4: The given 32-Bit library does not exist!
I'm using VS with admin rights. In the bin folder I have all needed files AFAIK:
I have added easyhook.dll and easyload32 and 64 as reference (why these two new files? Haven't seen any documentation talking about them). THANKS!
PD: Have tried this with 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");