/// <summary> /// Spawned within the client (hooked process) /// </summary> /// <param name="context"></param> /// <param name="channelName"></param> public EasyHookEntryPoint(RemoteHooking.IContext context, string channelName, BridgeEventType enabledHooks, int processId) { // Retrieve a reference to our interface this.hookInterface = RemoteHooking.IpcConnectClient <HookInterface>(channelName); // Validate connection this.hookInterface.Ping(); this.enabledHooks = enabledHooks; this.ProcessID = processId; }
/// <summary> /// Spawned within the client (hooked process) /// </summary> /// <param name="context"></param> /// <param name="channelName"></param> public EasyHookEntryPoint(RemoteHooking.IContext context, string channelName, BridgeEventType enabledHooks, int processId) { // Retrieve a reference to our interface this.hookInterface = RemoteHooking.IpcConnectClient<HookInterface>(channelName); // Validate connection this.hookInterface.Ping(); this.enabledHooks = enabledHooks; this.ProcessID = processId; }