public InjectorProcess(Process process, InjectorInterface captureInterface) { string ChannelName = null; RemoteHooking.IpcCreateServer <InjectorInterface>( ref ChannelName, WellKnownObjectMode.Singleton, captureInterface); RemoteHooking.Inject( process.Id, InjectionOptions.Default, typeof(InjectorInterface).Assembly.Location, typeof(InjectorInterface).Assembly.Location, ChannelName ); }
public InjectorEntryPoint(EasyHook.RemoteHooking.IContext context, String channelName) { Interface = EasyHook.RemoteHooking.IpcConnectClient <InjectorInterface>(channelName); Interface.Ping(); }