Beispiel #1
0
 private void timeElapsed(object sender, ElapsedEventArgs e)
 {
     this.Invoke(new Action(() =>
     {
         try
         {
             BasicHook.UnhookWindowsHookEx(hook);
             hook = BasicHook.SetHook(_hookCallback);
         }
         catch
         {
             throw;
         }
     }));
 }
Beispiel #2
0
 private void MyTranslator_FormClosing(object sender, FormClosingEventArgs e)
 {
     BasicHook.UnhookWindowsHookEx(hook);
     Environment.Exit(0);
 }