Inheritance: IDisposable
Ejemplo n.º 1
0
 public void Teardown()
 {
     if( _windowsHook != null )
     {
         // Event unregister
         _windowsHook.HookProcInvoked = null;
         // Unset the CurrentHook when we don't need it anymore
         _windowsHook.Dispose();
         _windowsHook = null;
     }
 }
Ejemplo n.º 2
0
 public void Start()
 {
     // Build & Set a WH_KEYBOARD_LL (Low Level Mouse Windows Hook)
     _windowsHook = new WindowsHook( _syncCtx, HookType.WH_KEYBOARD_LL );
     _windowsHook.SetWindowsHook();
     _windowsHook.HookProcInvoked = OnHookInvoqued;
 }