コード例 #1
0
ファイル: InjectEntryPoint.cs プロジェクト: PourrezJ/RoeHack
        public InjectEntryPoint(RemoteHooking.IContext context, Parameter parameter)
        {
            server = RemoteHooking.IpcConnectClient <ServerInterface>(parameter.ChannelName);
            var channel = new IpcServerChannel(
                parameter.ChannelName,
                parameter.ChannelName + Guid.NewGuid().ToString("N"),
                new BinaryServerFormatterSinkProvider()
            {
                TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full
            });

            ChannelServices.RegisterChannel(channel, false);

            proxy = new ServerInterfaceEventProxy();

            logger = new IpcConnectLogger(server);

            server.Ping();

            hooker = GetCurrentVerionDirectX(parameter);
        }