public void DestroyContext()
 {
     if (IsContextCreated == true)
     {
         InterceptionDriver.DestroyContext(context);
         IsContextCreated = false;
     }
 }
Esempio n. 2
0
        private void Stop()
        {
            if (context != IntPtr.Zero)
            {
                InterceptionDriver.DestroyContext(context);
            }
            ni.Dispose();

            Process.GetCurrentProcess().Kill();
        }
 public void Abort()
 {
     _cancelSource.Cancel();
     _InterceptionListenerThread.Abort();
     if (_inteceptionContext != IntPtr.Zero)
     {
         InterceptionDriver.DestroyContext(_inteceptionContext);
     }
     if (_targets != null)
     {
         foreach (IClickerTarget plugin in _targets)
         {
             plugin.Dispose();
         }
     }
 }
Esempio n. 4
0
        private void Stop()
        {
            if (context != IntPtr.Zero)
            {
                InterceptionDriver.DestroyContext(context);
            }

            ni.Dispose();

            Dispatcher.Invoke(() =>
            {
                black_sc1.Close();
                black_sc2.Close();
                this.Close();
            });
        }