如果我做:
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)
{
}
我收到此错误:
STATUS_INVALID_PARAMETER_4:给定的 32 位库不存在!
我正在使用具有管理员权限的 VS。在 bin 文件夹中,我有所有需要的文件 AFAIK:
我添加了 easyhook.dll 和 easyload32 和 64 作为参考(为什么这两个新文件?还没有看到任何文档谈论它们)。谢谢!
PD:已经尝试过同样的结果:
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");