public void DestroyContext() { if (IsContextCreated == true) { InterceptionDriver.DestroyContext(context); IsContextCreated = false; } }
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(); } } }
private void Stop() { if (context != IntPtr.Zero) { InterceptionDriver.DestroyContext(context); } ni.Dispose(); Dispatcher.Invoke(() => { black_sc1.Close(); black_sc2.Close(); this.Close(); }); }