public void Unhook()
 {
     UnhookWindowsHookEx(hhook);
     this.signals = null;
     this.signal = null;
     this.apiHelper = null;
 }
 public void Hook()
 {
     IntPtr hInstance = LoadLibrary("User32");
     hhook = SetWindowsHookEx(WH_KEYBOARD_LL, HookProc, hInstance, 0);
     this.signals = new List<Signal>();
     this.signal = new Signal();
     this.apiHelper = new ApiHelper();
 }