public CommandHandler(ControlInterface ctrlInterface, GlobalConfig config) { this.commandQueue = new CommandQueue(ctrlInterface); this.ctrlInterface = ctrlInterface; this.config = config; eventCallback = LuaEventHandler; luaEventCallbackPtr = Marshal.GetFunctionPointerForDelegate(eventCallback); frameName = SFUtil.GetRandomAsciiString(5); ResolveEndSceneAddress(); RegisterFunctions(); }
public RemoteMain(RemoteHooking.IContext context, string channelName, GlobalConfig config) { ctrlInterface = RemoteHooking.IpcConnectClient <ControlInterface>(channelName); EstablishReverseRemotingConnection(channelName); commandHandler = new CommandHandler(ctrlInterface, config); packetManager = new PacketManager(ctrlInterface, commandHandler); commandHandler.DetourWndProc(); wardenBuster = new WardenBuster(ctrlInterface.hostControl, commandHandler); ctrlInterface.hostControl.PrintMessage($"Ready"); }
public RemoteMain(RemoteHooking.IContext context, GlobalConfig config) { try { ctrlInterface = new ControlInterface(); SetupRemotingServer(); commandHandler = new CommandHandler(ctrlInterface, config); packetManager = new PacketManager(ctrlInterface, commandHandler); commandHandler.DetourWndProc(); wardenBuster = new WardenBuster(ctrlInterface.hostControl, commandHandler); ctrlInterface.hostControl.PrintMessage($"Ready"); } catch (Exception e) { ctrlInterface.hostControl.PrintMessage(e.ToString()); } }
public CommandQueue(ControlInterface ctrlInterface) { this.ctrlInterface = ctrlInterface; }