private void OnAttachToPid(object sender, RoutedEventArgs e)
 {
     ProcessId = int.Parse(uxPid.Text);
     RemoteHooking.Inject(
         ProcessId,
         Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "GCHook.dll"),
         Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "GCHook.dll"),
         (object)channelName);
     Interface = RemoteHooking.IpcConnectClient<InjectInterface>(channelName);
     IsAttached = true;
 }
 public InjectionPoint(RemoteHooking.IContext InContext, string InChannelName)
 {
     this.Interface = RemoteHooking.IpcConnectClient<InjectInterface>(InChannelName);
       this.Interface.Ping(RemoteHooking.GetCurrentProcessId());
 }